about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
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");