Commit 129e1968 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

#260: make pidfile mode less restrictive.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2790 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent d6b3d964
...@@ -525,7 +525,7 @@ main(int argc, char *argv[]) ...@@ -525,7 +525,7 @@ main(int argc, char *argv[])
} }
/* XXX: should this be relative to the -n arg ? */ /* 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); perror(P_arg);
exit(1); exit(1);
} }
......
...@@ -366,7 +366,7 @@ main(int argc, char **argv) ...@@ -366,7 +366,7 @@ main(int argc, char **argv)
if (VSL_OpenLog(vd, n_arg)) if (VSL_OpenLog(vd, n_arg))
exit(1); 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); perror(P_arg);
exit(1); exit(1);
} }
......
...@@ -550,7 +550,7 @@ main(int argc, char *argv[]) ...@@ -550,7 +550,7 @@ main(int argc, char *argv[])
if (VSL_OpenLog(vd, n_arg)) if (VSL_OpenLog(vd, n_arg))
exit(1); 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); perror(P_arg);
exit(1); exit(1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment