guix-install.sh: Use a deterministic umask.
authorTobias Geerinckx-Rice <me@tobias.gr>
Wed, 4 Dec 2019 02:42:28 +0000 (03:42 +0100)
committerTobias Geerinckx-Rice <me@tobias.gr>
Wed, 4 Dec 2019 02:59:04 +0000 (03:59 +0100)
Users with strict umasks (e.g. 0077) would end up with an unreadable
/gnu (mode 0700) and no way to run guix.

Reported by A. <@aaap:matrix.org> on #guix.

* etc/guix-install.sh (main): Set umask before installing anything.

etc/guix-install.sh

index bd3ab90..111e25f 100755 (executable)
@@ -439,6 +439,7 @@ main()
 
     _msg "${INF}system is ${ARCH_OS}"
 
+    umask 0022
     tmp_path="$(mktemp -t -d guix.XXX)"
 
     guix_get_bin_list "${GNU_URL}"