diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2018-02-23 13:34:08 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2018-02-23 13:34:08 +0100 |
commit | 7bcab422e5f2fb1ee16e177c182005c313be630e (patch) | |
tree | b98af5323041a71d4794536385424522f30d345a | |
parent | b89b6f434939b3ab256afd476467e6189c3a4ab9 (diff) | |
download | cygnal-7bcab422e5f2fb1ee16e177c182005c313be630e.tar.gz cygnal-7bcab422e5f2fb1ee16e177c182005c313be630e.tar.bz2 cygnal-7bcab422e5f2fb1ee16e177c182005c313be630e.zip |
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>
-rw-r--r-- | winsup/cygwin/fhandler_socket_local.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |