chiark / gitweb /
zsh: Disable TIOCSETD ioctl during initialization
[termux-packages] / packages / lighttpd / hostlen-scope.patch
1 diff -u -r ../lighttpd-1.4.35/src/network.c ./src/network.c
2 --- ../lighttpd-1.4.35/src/network.c    2014-03-06 15:08:00.000000000 +0100
3 +++ ./src/network.c     2014-03-13 01:22:10.235965757 +0100
4 @@ -356,7 +356,6 @@
5                                 goto error_free_socket;
6                         }
7                         memcpy(srv_socket->addr.un.sun_path, host, hostlen);
8 -               }
9                 srv_socket->addr.un.sun_family = AF_UNIX;
10  
11  #ifdef SUN_LEN
12 @@ -365,6 +364,7 @@
13                 /* stevens says: */
14                 addr_len = hostlen + sizeof(srv_socket->addr.un.sun_family);
15  #endif
16 +               }
17  
18                 /* check if the socket exists and try to connect to it. */
19                 if (-1 != (fd = connect(srv_socket->fd, (struct sockaddr *) &(srv_socket->addr), addr_len))) {