about summary refs log tree commit diff
path: root/scripts/nix-pull.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-02-08T13·00+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-02-08T13·00+0000
commit60feff82cf4dd89c9039914c5b3ef8e1b8acf8e7 (patch)
tree34181b27c70676371291904493923418c85db50a /scripts/nix-pull.in
parent48ebe4527e5af974832bc39f15fcd46ac740effa (diff)
* Set umask to prevent permission problems.
Diffstat (limited to 'scripts/nix-pull.in')
-rw-r--r--scripts/nix-pull.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/nix-pull.in b/scripts/nix-pull.in
index 841e97e83109..7f46236b838d 100644
--- a/scripts/nix-pull.in
+++ b/scripts/nix-pull.in
@@ -23,6 +23,10 @@ my $stateDir = $ENV{"NIX_STATE_DIR"};
 $stateDir = "@localstatedir@/nix" unless defined $stateDir;
 
 
+# Prevent access problems in shared-stored installations.
+umask 0022;
+
+
 # Obtain URLs either from the command line or from a configuration file.
 my %narFiles;
 my %patches;