Fix unix socket mode change to work without specifying user/group for socket

git-svn-id: svn://svn.lighttpd.net/spawn-fcgi/trunk@48 4a9f3682-ca7b-49a8-9a55-ba4640e46f83
master
Stefan Bühler 14 years ago
parent 602ad4421c
commit 65341bc53b

@ -4,6 +4,7 @@ NEWS
====
- 1.6.3 -
* Fix unix socket mode change to work without specifying user/group for socket
- 1.6.2 - 2009-04-18
* Add homepage to README

@ -197,13 +197,13 @@ static int bind_socket(const char *addr, unsigned short port, const char *unixso
unlink(unixsocket);
return -1;
}
}
if (-1 == chmod(unixsocket, mode)) {
fprintf(stderr, "spawn-fcgi: couldn't chmod socket: %s\n", strerror(errno));
close(fcgi_fd);
unlink(unixsocket);
return -1;
}
if (-1 == chmod(unixsocket, mode)) {
fprintf(stderr, "spawn-fcgi: couldn't chmod socket: %s\n", strerror(errno));
close(fcgi_fd);
unlink(unixsocket);
return -1;
}
}

Loading…
Cancel
Save