daemon: Handle /tmp being a symlink.
authorEelco Dolstra <eelco.dolstra@logicblox.com>
Tue, 22 Dec 2015 16:16:17 +0000 (17:16 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 31 May 2016 12:25:28 +0000 (14:25 +0200)
* nix/libstore/build.cc (DerivationGoal::startBuilder): Call 'canonPath'
on "/tmp".

nix/libstore/build.cc

index f9fd61a..f0f60d7 100644 (file)
@@ -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. */