about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-08-24T00·24-0400
committerMatthew Bauer <mjbauer95@gmail.com>2019-08-24T00·24-0400
commit5c06a8d3283139140e765b5f10ad7102a6a3e964 (patch)
tree7ed45de2044eb7bfae44094198b42d94aa4105fb /src/libstore
parent9a0855bbb6546e792848e551e79f8efc40782eeb (diff)
Reset tmpDirInSandbox for unsandboxed
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 0f71e7511512..96e9b8edda0a 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -2330,6 +2330,7 @@ void DerivationGoal::startBuilder()
         int res = helper.wait();
         if (res != 0 && settings.sandboxFallback) {
             useChroot = false;
+            tmpDirInSandbox = tmpDir;
             goto fallback;
         } else if (res != 0)
             throw Error("unable to start build process");