]> err.no Git - varnish/commitdiff
#260: make pidfile mode less restrictive.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 24 Jun 2008 11:46:24 +0000 (11:46 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 24 Jun 2008 11:46:24 +0000 (11:46 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2790 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/varnishd.c
varnish-cache/bin/varnishlog/varnishlog.c
varnish-cache/bin/varnishncsa/varnishncsa.c

index 0780bf38227f374196108633f4a08b8606e1709d..2c67bf3d928d822b78f83443f1e715b74aa516c7 100644 (file)
@@ -525,7 +525,7 @@ main(int argc, char *argv[])
        }
 
        /* XXX: should this be relative to the -n arg ? */
-       if (P_arg && (pfh = vpf_open(P_arg, 0600, NULL)) == NULL) {
+       if (P_arg && (pfh = vpf_open(P_arg, 0644, NULL)) == NULL) {
                perror(P_arg);
                exit(1);
        }
index 430143358f9e038db12e79f1c270f50d354bdbd0..1f4a818d840922f0d92df63c629cbda6773cc970 100644 (file)
@@ -366,7 +366,7 @@ main(int argc, char **argv)
        if (VSL_OpenLog(vd, n_arg))
                exit(1);
 
-       if (P_arg && (pfh = vpf_open(P_arg, 0600, NULL)) == NULL) {
+       if (P_arg && (pfh = vpf_open(P_arg, 0644, NULL)) == NULL) {
                perror(P_arg);
                exit(1);
        }
index b05ae80e1c8b1a3bef1d8789f4451fcb2aa6b02f..f8e06f145db8c279dce2decf8e2660c8e1b157a9 100644 (file)
@@ -550,7 +550,7 @@ main(int argc, char *argv[])
        if (VSL_OpenLog(vd, n_arg))
                exit(1);
 
-       if (P_arg && (pfh = vpf_open(P_arg, 0600, NULL)) == NULL) {
+       if (P_arg && (pfh = vpf_open(P_arg, 0644, NULL)) == NULL) {
                perror(P_arg);
                exit(1);
        }