aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-07-08 22:37:02 +0200
committerLudovic Courtès <ludo@gnu.org>2013-07-08 22:43:53 +0200
commitcaddc24fa4e8dc2b5c430feece9a50c7889d73bc (patch)
tree3fa61849dd88ad5a266af02f86c1f61efd39dc0a
parentb97556d75cb5f4d1d665320f7d1217ce9189460d (diff)
downloadguix-caddc24fa4e8dc2b5c430feece9a50c7889d73bc.tar.gz
guix-caddc24fa4e8dc2b5c430feece9a50c7889d73bc.zip
build: Set the umask to 0022 before running the daemon for tests.
* test-env.in: Run "umask 0022" before running the daemon. Reported by Matthew Lien - 練喆明 <bluet@bluet.org>
-rw-r--r--test-env.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/test-env.in b/test-env.in
index 64440fb86a..e6b13c271e 100644
--- a/test-env.in
+++ b/test-env.in
@@ -56,6 +56,10 @@ then
# Do that because store.scm calls `canonicalize-path' on it.
mkdir -p "$NIX_STORE_DIR"
+ # Set the umask to avoid "suspicious ownership or permission" errors.
+ # See <http://lists.gnu.org/archive/html/bug-guix/2013-07/msg00033.html>.
+ umask 0022
+
# Launch the daemon without chroot support because is may be
# unavailable, for instance if we're not running as root.
"@abs_top_builddir@/pre-inst-env" \