OSDN Git Service

* fhandler_socket.cc (fhandler_socket::dup): Add missing copy operation
authorcorinna <corinna>
Thu, 4 Jul 2002 15:32:34 +0000 (15:32 +0000)
committercorinna <corinna>
Thu, 4 Jul 2002 15:32:34 +0000 (15:32 +0000)
on sun_path.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_socket.cc

index aaea5c2..6c0e041 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-04  Corinna Vinschen  <corinna@vinschen.de>
+
+       * fhandler_socket.cc (fhandler_socket::dup): Add missing copy operation
+       on sun_path.
+
 2002-07-03  Christopher Faylor  <cgf@redhat.com>
 
        * include/cygwin/version.h: Bump DLL minor number.
index ffae6b1..01e9dae 100644 (file)
@@ -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)