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
+++ b/GNUmakefile
@@ -3,8 +3,7 @@ OUT =		libxslt
 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
new file mode 100755
--- /dev/null
+++ b/umasked.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+umask 002
+
+exec /bin/sh "$@"