[newlib-cygwin] Cygwin: sockets: Fix fstat on unnamed sockets
Corinna Vinschen
corinna@sourceware.org
Tue Feb 27 14:31:00 GMT 2018
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);
More information about the Cygwin-cvs
mailing list