Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-07-04 19:32:34 +0400
committerCorinna Vinschen <corinna@vinschen.de>2002-07-04 19:32:34 +0400
commite48947085c4a06bcca55fd18688147414d1125eb (patch)
tree72634b1c8817628303b78f1e10dd2f7a22b305a4 /winsup/cygwin/fhandler_socket.cc
parent8dcdae34b31eb30de5a0f0157faf3bb80a675cf6 (diff)
* fhandler_socket.cc (fhandler_socket::dup): Add missing copy operation
on sun_path.
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r--winsup/cygwin/fhandler_socket.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc
index ffae6b1b8..01e9daead 100644
--- a/winsup/cygwin/fhandler_socket.cc
+++ b/winsup/cygwin/fhandler_socket.cc
@@ -286,6 +286,8 @@ fhandler_socket::dup (fhandler_base *child)
fhandler_socket *fhs = (fhandler_socket *) child;
fhs->addr_family = addr_family;
fhs->set_io_handle (get_io_handle ());
+ if (get_addr_family () == AF_LOCAL)
+ fhs->set_sun_path (get_sun_path ());
fhs->fixup_before_fork_exec (GetCurrentProcessId ());
if (winsock2_active)