* net.cc (cygwin_accept): Set sun_path for newly connected socket.

This commit is contained in:
Corinna Vinschen 2002-01-09 20:57:55 +00:00
parent a717363576
commit fe37dd79ec
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-01-08 Corinna Vinschen <corinna@vinschen.de>
* net.cc (cygwin_accept): Set sun_path for newly connected socket.
2002-01-07 Ralf Habacker <Ralf.Habacker@freenet.de>
* Makefile.in: Add uninstall target.

View File

@ -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;
}