From 7bcab422e5f2fb1ee16e177c182005c313be630e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 23 Feb 2018 13:34:08 +0100 Subject: [PATCH] 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 --- winsup/cygwin/fhandler_socket_local.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/fhandler_socket_local.cc b/winsup/cygwin/fhandler_socket_local.cc index 0649fa0a7..298a378e3 100644 --- a/winsup/cygwin/fhandler_socket_local.cc +++ b/winsup/cygwin/fhandler_socket_local.cc @@ -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));