diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-09-30 17:48:49 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-09-30 17:48:49 +0200 |
commit | 924712eef1fe86d349635ba666d413632e62519c (patch) | |
tree | 6b8c60f2c1796e07657b785013414efdb61d23f3 /scripts/install.in | |
parent | 20a1e20d9194527d725898c745d1243d3de16277 (diff) |
Installer: Set a known umask
Fixes #1560, #2377.
Diffstat (limited to 'scripts/install.in')
-rw-r--r-- | scripts/install.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/install.in b/scripts/install.in index 1d26c4ff0..39fae37e3 100644 --- a/scripts/install.in +++ b/scripts/install.in @@ -10,6 +10,8 @@ oops() { exit 1 } +umask 0022 + tmpDir="$(mktemp -d -t nix-binary-tarball-unpack.XXXXXXXXXX || \ oops "Can't create temporary directory for downloading the Nix binary tarball")" cleanup() { |