I hope it isn't too late for 3.9.

lighttpd sets the umask to 0 in daemonize(), which IMHO is a very bad
idead.

Ciao,
        Kili

ps: also reported to www.lighttpd.net

diff -x CVS -rNu ../lighttpd/Makefile ./Makefile
--- ../lighttpd/Makefile        Sat Feb 25 23:53:28 2006
+++ ./Makefile  Sat Feb 25 23:52:36 2006
@@ -5,7 +5,7 @@
 COMMENT=       "secure, fast, compliant, and very flexible web-server"
 
 DISTNAME=      lighttpd-1.4.10
-PKGNAME=       ${DISTNAME}p1
+PKGNAME=       ${DISTNAME}p2
 CATEGORIES=    www net
 
 MAINTAINER=    Brad Smith <[EMAIL PROTECTED]>
diff -x CVS -rNu ../lighttpd/patches/patch-src_server_c 
./patches/patch-src_server_c
--- ../lighttpd/patches/patch-src_server_c      Thu Jan  1 01:00:00 1970
+++ ./patches/patch-src_server_c        Sat Feb 25 23:51:12 2006
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- src/server.c.orig  Wed Feb  1 12:50:02 2006
++++ src/server.c       Sat Feb 25 23:51:01 2006
+@@ -118,8 +118,6 @@ static void daemonize(void) {
+       if (0 != fork()) exit(0);
+       
+       if (0 != chdir("/")) exit(0);
+-      
+-      umask(0);
+ }
+ #endif
+ 

Reply via email to