~ruther/guix-local

e08380fb6cefd3fd67c3c220a3ddaf385e6413cf — Eelco Dolstra 10 years ago 8fe5d95
daemon: Handle /tmp being a symlink.

* nix/libstore/build.cc (DerivationGoal::startBuilder): Call 'canonPath'
on "/tmp".
1 files changed, 1 insertions(+), 1 deletions(-)

M nix/libstore/build.cc
M nix/libstore/build.cc => nix/libstore/build.cc +1 -1
@@ 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. */