util: print expected uid/gid in UTI_CheckDirPermissions()
This commit is contained in:
parent
1619453b2b
commit
06486f3162
1 changed files with 7 additions and 2 deletions
9
util.c
9
util.c
|
@ -1058,8 +1058,13 @@ UTI_CheckDirPermissions(const char *path, mode_t perm, uid_t uid, gid_t gid)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (buf.st_uid != uid || buf.st_gid != gid) {
|
||||
LOG(LOGS_ERR, LOGF_Util, "Wrong owner/group of %s", path);
|
||||
if (buf.st_uid != uid) {
|
||||
LOG(LOGS_ERR, LOGF_Util, "Wrong owner of %s (%s != %d)", path, "UID", uid);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (buf.st_gid != gid) {
|
||||
LOG(LOGS_ERR, LOGF_Util, "Wrong owner of %s (%s != %d)", path, "GID", gid);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue