diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 708d34b2e..962070994 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +Wed May 23 10:11:00 2001 Corinna Vinschen + + * syscalls.cc (chown_worker): Don't check for ENOSYS. + Tue May 22 12:20:07 2001 Christopher Faylor * signal.cc (sleep): Protect with sigframe. 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: