From e08380fb6cefd3fd67c3c220a3ddaf385e6413cf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 22 Dec 2015 17:16:17 +0100 Subject: daemon: Handle /tmp being a symlink. * nix/libstore/build.cc (DerivationGoal::startBuilder): Call 'canonPath' on "/tmp". --- nix/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nix') diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc index f9fd61adde..f0f60d7df1 100644 --- a/nix/libstore/build.cc +++ b/nix/libstore/build.cc @@ -1717,7 +1717,7 @@ void DerivationGoal::startBuilder() /* In a sandbox, for determinism, always use the same temporary directory. */ - tmpDirInSandbox = useChroot ? "/tmp/guix-build-" + drvName + "-0" : tmpDir; + tmpDirInSandbox = useChroot ? canonPath("/tmp/guix-build-", true) + drvName + "-0" : tmpDir; /* For convenience, set an environment pointing to the top build directory. */ -- cgit v1.2.3