From 40d3c804132cdef1647e3e8b584c7a168774ca3b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 3 May 2003 16:03:19 +0000 Subject: [PATCH] * syscalls.cc (chown_worker): Allow chown'ing of socket files. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/syscalls.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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;