From 378692ee42bb29280c439600832e84a0ddb7471a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 30 Jul 2007 10:58:16 +0000 Subject: * 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. --- winsup/cygwin/sec_acl.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'winsup/cygwin/sec_acl.cc') diff --git a/winsup/cygwin/sec_acl.cc b/winsup/cygwin/sec_acl.cc index 54d443b17..a0c248fd0 100644 --- a/winsup/cygwin/sec_acl.cc +++ b/winsup/cygwin/sec_acl.cc @@ -407,6 +407,8 @@ acl_worker (const char *path, int cmd, int nentries, __aclent32_t *aclbufp, debug_printf ("got %d error from build_fh_name", fh->error ()); set_errno (fh->error ()); } + else if (!fh->exists ()) + set_errno (ENOENT); else res = fh->facl (cmd, nentries, aclbufp); -- cgit v1.2.3