This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Cygwin: sockets: Fix fstat on unnamed sockets
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 27 Feb 2018 14:31:03 -0000
- Subject: [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);