From 1f1b95f4c63879a1ebb921fe556ccc141333bc39 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Tue, 25 Aug 2009 07:06:36 +0530 Subject: [PATCH] compile: move umask up to cover other outputs also --- gl-compile-conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gl-compile-conf b/gl-compile-conf index ac4134d..da3163a 100755 --- a/gl-compile-conf +++ b/gl-compile-conf @@ -66,6 +66,9 @@ our $USERNAME_PATT=qr(^\@?[0-9a-zA-Z][0-9a-zA-Z._-]*$); # very simple patter our %groups = (); our %repos = (); +# set a restrictive umask, just in case +umask(0077); + # ---------------------------------------------------------------------------- # subroutines # ---------------------------------------------------------------------------- @@ -180,7 +183,6 @@ close(OUT); # did not have that luxury, so it was forced to detect the first push and # create it then -umask(0077); my_chdir("$ENV{HOME}/$REPO_BASE"); for my $repo (keys %repos) {