Cygwin: fix fhandler_socket_local::fchmod
Rather than just returning 0, return the result of calling the base class fchmod. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
b89b6f4349
commit
7bcab422e5
|
@ -650,7 +650,7 @@ int
|
|||
fhandler_socket_local::fchmod (mode_t newmode)
|
||||
{
|
||||
if (!get_sun_path () || get_sun_path ()[0] == '\0')
|
||||
return 0;
|
||||
return fhandler_socket::fchmod (newmode);
|
||||
fhandler_disk_file fh (pc);
|
||||
fh.get_device () = FH_FS;
|
||||
return fh.fchmod (S_IFSOCK | adjust_socket_file_mode (newmode));
|
||||
|
|
Loading…
Reference in New Issue