* fhandler_disk_file.cc (fhandler_disk_file::facl): If file can't be
opened for reading the ACLs, fall back to faking them. * sec_acl.cc (acl_worker): Handle non-existing files. * security.cc (get_file_attribute): Return ILLEGAL_UID/ILLEGAL_GID as owner/group for non-readable ACLs on file systems supporting them.
This commit is contained in:
@@ -336,6 +336,15 @@ get_file_attribute (HANDLE handle, path_conv &pc,
|
||||
get_info_from_sd (sd, attribute, uidret, gidret);
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (uidret)
|
||||
*uidret = ILLEGAL_UID;
|
||||
if (gidret)
|
||||
*gidret = ILLEGAL_GID;
|
||||
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (uidret)
|
||||
|
Reference in New Issue
Block a user