1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 06:53:54 +02:00

Installer: Set a known umask

Fixes #1560, #2377.

(cherry picked from commit 924712eef1)
This commit is contained in:
Eelco Dolstra 2020-09-30 17:48:49 +02:00
parent f09b375837
commit 00a52f61f4
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
2 changed files with 4 additions and 0 deletions

View file

@ -2,6 +2,8 @@
set -e
umask 0022
dest="/nix"
self="$(dirname "$0")"
nix="@nix@"

View file

@ -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() {