From e48947085c4a06bcca55fd18688147414d1125eb Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 4 Jul 2002 15:32:34 +0000 Subject: [PATCH] * fhandler_socket.cc (fhandler_socket::dup): Add missing copy operation on sun_path. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_socket.cc | 2 ++ 2 files changed, 7 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index aaea5c2b9..6c0e04107 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2002-07-04 Corinna Vinschen + + * fhandler_socket.cc (fhandler_socket::dup): Add missing copy operation + on sun_path. + 2002-07-03 Christopher Faylor * include/cygwin/version.h: Bump DLL minor number. 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)