summaryrefslogtreecommitdiff
path: root/nix/libstore/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-12-22 17:16:17 +0100
committerLudovic Courtès <ludo@gnu.org>2016-05-31 14:25:28 +0200
commite08380fb6cefd3fd67c3c220a3ddaf385e6413cf (patch)
tree303a83a6816024a32035de423532fd92eb8ac9c4 /nix/libstore/build.cc
parent8fe5d95e6653a8ca2f40048b71bb596c80bb264f (diff)
daemon: Handle /tmp being a symlink.
* nix/libstore/build.cc (DerivationGoal::startBuilder): Call 'canonPath' on "/tmp".
Diffstat (limited to 'nix/libstore/build.cc')
-rw-r--r--nix/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
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. */