guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: guix-install.sh: Use a deterministic umask.


From: guix-commits
Subject: 01/01: guix-install.sh: Use a deterministic umask.
Date: Tue, 3 Dec 2019 21:59:30 -0500 (EST)

nckx pushed a commit to branch master
in repository guix.

commit 32c06affca63f12bb1de78e7c1ae52be5b61bb30
Author: Tobias Geerinckx-Rice <address@hidden>
Date:   Wed Dec 4 03:42:28 2019 +0100

    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.
---
 etc/guix-install.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index bd3ab90..111e25f 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -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}"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]