diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c7b63a9bb..8a233f0e0 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2002-01-08 Corinna Vinschen + + * net.cc (cygwin_accept): Set sun_path for newly connected socket. + 2002-01-07 Ralf Habacker * Makefile.in: Add uninstall target. diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 7ae505f39..c73a5af18 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -1255,6 +1255,8 @@ cygwin_accept (int fd, struct sockaddr *peer, int *len) else { fhandler_socket* res_fh = fdsock (res_fd, sock->get_name (), res); + if (sock->get_addr_family () == AF_LOCAL) + res_fh->set_sun_path (sock->get_sun_path ()); res_fh->set_addr_family (sock->get_addr_family ()); res = res_fd; }