[master] 0fc792a Be slightly less anal about the umask used to run CC

Poul-Henning Kamp phk at FreeBSD.org
Tue Mar 10 10:52:08 CET 2015


commit 0fc792a66d8b0833d4ec7558e7001afd0940f274
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Mar 10 09:51:51 2015 +0000

    Be slightly less anal about the umask used to run CC

diff --git a/bin/varnishd/mgt/mgt_vcc.c b/bin/varnishd/mgt/mgt_vcc.c
index e69d8bf..b9a1406 100644
--- a/bin/varnishd/mgt/mgt_vcc.c
+++ b/bin/varnishd/mgt/mgt_vcc.c
@@ -162,7 +162,7 @@ run_cc(void *priv)
 		VSB_putc(sb, '%');
 	AZ(VSB_finish(sb));
 
-	(void)umask(0177);
+	(void)umask(077);
 	(void)execl("/bin/sh", "/bin/sh", "-c", VSB_data(sb), (char*)0);
 	VSB_delete(sb);				// For flexelint
 }



More information about the varnish-commit mailing list