diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-05-23 08:12:49 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-05-23 08:12:49 +0000 |
commit | 07d08883d87c711bebaf87d1bb50bb246f70df35 (patch) | |
tree | 80a499a9e348debeb369014d3e94e91e3b42c280 /winsup/cygwin/syscalls.cc | |
parent | 1d0f9ded2e839a109119e1efdaab41d82fe043e4 (diff) | |
download | newlib-07d08883d87c711bebaf87d1bb50bb246f70df35.zip newlib-07d08883d87c711bebaf87d1bb50bb246f70df35.tar.gz newlib-07d08883d87c711bebaf87d1bb50bb246f70df35.tar.bz2 |
* syscalls.cc (chown_worker): Don't check for ENOSYS.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 12 |
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: |