1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-25 11:40:30 +02:00

daemon: Handle /tmp being a symlink.

* nix/libstore/build.cc (DerivationGoal::startBuilder): Call 'canonPath'
on "/tmp".
This commit is contained in:
Eelco Dolstra
2015-12-22 17:16:17 +01:00
committed by Ludovic Courtès
parent 8fe5d95e66
commit e08380fb6c

View 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. */