From 4ca0cefd1bb4dcc0df29a5e6d57d79b421e10951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 8 Jul 2013 22:37:02 +0200 Subject: [PATCH] build: Set the umask to 0022 before running the daemon for tests. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test-env.in: Run "umask 0022" before running the daemon. Reported by Matthew Lien - 練喆明 --- test-env.in | 4 ++++ 1 file changed, 4 insertions(+) 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 . + 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" \