* syscalls.cc (chown_worker): Allow chown'ing of socket files.

This commit is contained in:
Corinna Vinschen 2003-05-03 16:03:19 +00:00
parent 37e8e528aa
commit 40d3c80413
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-05-03 Corinna Vinschen <corinna@vinschen.de>
* syscalls.cc (chown_worker): Allow chown'ing of socket files.
2003-04-30 Thomas Pfaff <tpfaff@gmx.net>
* Makefile.in: Revert patch from 2003-04-17.

View File

@ -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;