This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]