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: sockets: Fix fstat on unnamed sockets


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d02f3a1238270102b70594deec2a9c68d3e5d330

commit d02f3a1238270102b70594deec2a9c68d3e5d330
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Tue Feb 27 15:30:00 2018 +0100

    Cygwin: sockets: Fix fstat on unnamed sockets
    
    Calling fhandler_socket::fstat from fhandler_socket::fstat recursively
    is not a good idea...
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/fhandler_socket.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc
index 292e648..5f00e69 100644
--- a/winsup/cygwin/fhandler_socket.cc
+++ b/winsup/cygwin/fhandler_socket.cc
@@ -309,7 +309,7 @@ fhandler_socket::fstat (struct stat *buf)
 {
   int res;
 
-  res = fhandler_socket::fstat (buf);
+  res = fhandler_base::fstat (buf);
   if (!res)
     {
       buf->st_dev = FHDEV (DEV_SOCK_MAJOR, 0);


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