Browse Source

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 12 years ago
parent
commit
65341bc53b
  1. 1
      NEWS
  2. 12
      src/spawn-fcgi.c

1
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

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

Loading…
Cancel
Save