r2790 - in trunk/varnish-cache/bin: varnishd varnishlog varnishncsa

des at projects.linpro.no des at projects.linpro.no
Tue Jun 24 13:46:24 CEST 2008


Author: des
Date: 2008-06-24 13:46:24 +0200 (Tue, 24 Jun 2008)
New Revision: 2790

Modified:
   trunk/varnish-cache/bin/varnishd/varnishd.c
   trunk/varnish-cache/bin/varnishlog/varnishlog.c
   trunk/varnish-cache/bin/varnishncsa/varnishncsa.c
Log:
#260: make pidfile mode less restrictive.


Modified: trunk/varnish-cache/bin/varnishd/varnishd.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/varnishd.c	2008-06-24 10:57:59 UTC (rev 2789)
+++ trunk/varnish-cache/bin/varnishd/varnishd.c	2008-06-24 11:46:24 UTC (rev 2790)
@@ -525,7 +525,7 @@
 	}
 
 	/* 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);
 	}

Modified: trunk/varnish-cache/bin/varnishlog/varnishlog.c
===================================================================
--- trunk/varnish-cache/bin/varnishlog/varnishlog.c	2008-06-24 10:57:59 UTC (rev 2789)
+++ trunk/varnish-cache/bin/varnishlog/varnishlog.c	2008-06-24 11:46:24 UTC (rev 2790)
@@ -366,7 +366,7 @@
 	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);
 	}

Modified: trunk/varnish-cache/bin/varnishncsa/varnishncsa.c
===================================================================
--- trunk/varnish-cache/bin/varnishncsa/varnishncsa.c	2008-06-24 10:57:59 UTC (rev 2789)
+++ trunk/varnish-cache/bin/varnishncsa/varnishncsa.c	2008-06-24 11:46:24 UTC (rev 2790)
@@ -550,7 +550,7 @@
 	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);
 	}




More information about the varnish-commit mailing list