From: des Date: Tue, 24 Jun 2008 11:46:24 +0000 (+0000) Subject: #260: make pidfile mode less restrictive. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6e30f61a9c9bc67c79674f167fcf163cd741cfe;p=varnish #260: make pidfile mode less restrictive. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2790 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/varnishd.c b/varnish-cache/bin/varnishd/varnishd.c index 0780bf38..2c67bf3d 100644 --- a/varnish-cache/bin/varnishd/varnishd.c +++ b/varnish-cache/bin/varnishd/varnishd.c @@ -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); } diff --git a/varnish-cache/bin/varnishlog/varnishlog.c b/varnish-cache/bin/varnishlog/varnishlog.c index 43014335..1f4a818d 100644 --- a/varnish-cache/bin/varnishlog/varnishlog.c +++ b/varnish-cache/bin/varnishlog/varnishlog.c @@ -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); } diff --git a/varnish-cache/bin/varnishncsa/varnishncsa.c b/varnish-cache/bin/varnishncsa/varnishncsa.c index b05ae80e..f8e06f14 100644 --- a/varnish-cache/bin/varnishncsa/varnishncsa.c +++ b/varnish-cache/bin/varnishncsa/varnishncsa.c @@ -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); }