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 | |
parent | 1d0f9ded2e839a109119e1efdaab41d82fe043e4 (diff) | |
download | newlib-07d08883d87c711bebaf87d1bb50bb246f70df35.zip newlib-07d08883d87c711bebaf87d1bb50bb246f70df35.tar.gz newlib-07d08883d87c711bebaf87d1bb50bb246f70df35.tar.bz2 |
* syscalls.cc (chown_worker): Don't check for ENOSYS.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/syscalls.cc | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 708d34b..9620709 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +Wed May 23 10:11:00 2001 Corinna Vinschen <corinna@vinschen.de> + + * syscalls.cc (chown_worker): Don't check for ENOSYS. + Tue May 22 12:20:07 2001 Christopher Faylor <cgf@cygnus.com> * signal.cc (sleep): Protect with sigframe. 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: |