guix-install.sh: Use a deterministic umask.
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.
This commit is contained in:
parent
4c16ffd383
commit
32c06affca
1 changed files with 1 additions and 0 deletions
|
@ -439,6 +439,7 @@ main()
|
||||||
|
|
||||||
_msg "${INF}system is ${ARCH_OS}"
|
_msg "${INF}system is ${ARCH_OS}"
|
||||||
|
|
||||||
|
umask 0022
|
||||||
tmp_path="$(mktemp -t -d guix.XXX)"
|
tmp_path="$(mktemp -t -d guix.XXX)"
|
||||||
|
|
||||||
guix_get_bin_list "${GNU_URL}"
|
guix_get_bin_list "${GNU_URL}"
|
||||||
|
|
Reference in a new issue