diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 5f866adaa..416beebea 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2003-05-03 Corinna Vinschen + + * syscalls.cc (chown_worker): Allow chown'ing of socket files. + 2003-04-30 Thomas Pfaff * Makefile.in: Revert patch from 2003-04-17. diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index eb1055080..de967938c 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -799,7 +799,7 @@ chown_worker (const char *name, unsigned fmode, __uid32_t uid, __gid32_t gid) /* FIXME: This makes chown on a device succeed always. Someday we'll want to actually allow chown to work properly on devices. */ - if (win32_path.is_device ()) + if (win32_path.is_device () && !win32_path.issocket ()) { res = 0; goto done;