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>
This commit is contained in:
parent
b97556d75c
commit
caddc24fa4
|
@ -56,6 +56,10 @@ then
|
||||||
# Do that because store.scm calls `canonicalize-path' on it.
|
# Do that because store.scm calls `canonicalize-path' on it.
|
||||||
mkdir -p "$NIX_STORE_DIR"
|
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
|
# Launch the daemon without chroot support because is may be
|
||||||
# unavailable, for instance if we're not running as root.
|
# unavailable, for instance if we're not running as root.
|
||||||
"@abs_top_builddir@/pre-inst-env" \
|
"@abs_top_builddir@/pre-inst-env" \
|
||||||
|
|
Loading…
Reference in New Issue