aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
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 48a8d72..6eb9ee1 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: