aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-08-23 20:24:39 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2019-08-23 20:24:39 -0400
commit5c06a8d3283139140e765b5f10ad7102a6a3e964 (patch)
tree7ed45de2044eb7bfae44094198b42d94aa4105fb /src/libstore/build.cc
parent9a0855bbb6546e792848e551e79f8efc40782eeb (diff)
Reset tmpDirInSandbox for unsandboxed
Diffstat (limited to 'src/libstore/build.cc')
-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 0f71e7511..96e9b8edd 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");