This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Cygwin: fix fhandler_socket_local::fchmod
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 23 Feb 2018 12:34:59 -0000
- Subject: [newlib-cygwin] Cygwin: fix fhandler_socket_local::fchmod
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=7bcab422e5f2fb1ee16e177c182005c313be630e
commit 7bcab422e5f2fb1ee16e177c182005c313be630e
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Fri Feb 23 13:34:08 2018 +0100
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>
Diff:
---
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 0649fa0..298a378 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));