From 60feff82cf4dd89c9039914c5b3ef8e1b8acf8e7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 8 Feb 2005 13:00:39 +0000 Subject: [PATCH] * Set umask to prevent permission problems. --- scripts/nix-pull.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/nix-pull.in b/scripts/nix-pull.in index 841e97e83..7f46236b8 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;