aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2009-06-03 16:53:29 +0000
committerStefan Bühler <stbuehler@web.de>2009-06-03 16:53:29 +0000
commit65341bc53b90ee39b484a9287167dbc40e00c440 (patch)
tree5ea6f65f5507bbc54cf4d6c7f8fbba65ce9fd37e
parent602ad4421cd1aeabee1b708e30a0c45618955ee6 (diff)
downloadspawn-fcgi-65341bc53b90ee39b484a9287167dbc40e00c440.tar.gz
spawn-fcgi-65341bc53b90ee39b484a9287167dbc40e00c440.zip
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
-rw-r--r--NEWS1
-rw-r--r--src/spawn-fcgi.c12
2 files changed, 7 insertions, 6 deletions
diff --git a/NEWS b/NEWS
index d46172c..b588a4f 100644
--- a/NEWS
+++ b/NEWS
@@ -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
diff --git a/src/spawn-fcgi.c b/src/spawn-fcgi.c
index 98c21c2..686457a 100644
--- a/src/spawn-fcgi.c
+++ b/src/spawn-fcgi.c
@@ -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;
}
}