diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-07-30 10:58:16 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-07-30 10:58:16 +0000 |
commit | 378692ee42bb29280c439600832e84a0ddb7471a (patch) | |
tree | 180947c247b5c35e3bc21bbd5d37dc3edb993291 /winsup/cygwin/security.cc | |
parent | 73151c54d58148eed83117dfa69f9da404fe53ac (diff) | |
download | cygnal-378692ee42bb29280c439600832e84a0ddb7471a.tar.gz cygnal-378692ee42bb29280c439600832e84a0ddb7471a.tar.bz2 cygnal-378692ee42bb29280c439600832e84a0ddb7471a.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r-- | winsup/cygwin/security.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index 5740446e7..daf2861ed 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -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) |