Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-05-23 12:12:49 +0400
committerCorinna Vinschen <corinna@vinschen.de>2001-05-23 12:12:49 +0400
commit07d08883d87c711bebaf87d1bb50bb246f70df35 (patch)
tree80a499a9e348debeb369014d3e94e91e3b42c280 /winsup/cygwin/syscalls.cc
parent1d0f9ded2e839a109119e1efdaab41d82fe043e4 (diff)
* syscalls.cc (chown_worker): Don't check for ENOSYS.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 48a8d72d2..6eb9ee1b2 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -724,12 +724,12 @@ chown_worker (const char *name, unsigned fmode, uid_t uid, gid_t gid)
uid, gid, attrib,
cygheap->user.logsrv ());
}
- if (res != 0 && get_errno () == ENOSYS)
- {
- /* fake - if not supported, pretend we're like win95
- where it just works */
- res = 0;
- }
+ if (res != 0 && (!win32_path.has_acls () || !allow_ntsec))
+ {
+ /* fake - if not supported, pretend we're like win95
+ where it just works */
+ res = 0;
+ }
}
done: