changeset 146:356bcdeb008f

* Fixed incorrect file permissions on file creation with an external shell wrapper. * Reverted r140.
author Sergey Budnevitch <sb@waeme.net>
date Tue, 25 Oct 2011 12:45:16 +0000
parents 078c568068c4
children 8057b7793bd9
files GNUmakefile umasked.sh
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/GNUmakefile	Tue Oct 25 12:27:12 2011 +0000
+++ b/GNUmakefile	Tue Oct 25 12:45:16 2011 +0000
@@ -3,8 +3,7 @@
 TEXT =		text
 ZIP =		gzip
 NGINX_ORG =	/data/www/nginx.org
-UMASK =		002
-SHELL =		umask $(UMASK) && exec /bin/sh
+SHELL =		./umasked.sh
 
 CP =		/data/sites/java/xsls/\*:$(HOME)/java/xsls/\*
 RSYNC =		rsync -v -rpc --exclude=.svn
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/umasked.sh	Tue Oct 25 12:45:16 2011 +0000
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+umask 002
+
+exec /bin/sh "$@"