about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-05-15T15·26+0200
committerEelco Dolstra <edolstra@gmail.com>2017-05-15T15·36+0200
commitb30f5784d0184688de964f6239e373b62101ebc4 (patch)
treec5ae21e95289b15bb9a39efdf26631c8d7f5c9b8 /src/libstore/build.cc
parent2b761d5f50b7dc17dc55c31980c2253c37b3c920 (diff)
Linux sandbox: Don't barf on invalid paths
This is useful when we're using a diverted store (e.g. "--store
local?root=/tmp/nix") in conjunction with a statically-linked sh from
the host store (e.g. "sandbox-paths =/bin/sh=/nix/store/.../bin/busybox").
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 270500d81c90..5ec4cbf66540 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1774,6 +1774,7 @@ void DerivationGoal::startBuilder()
             try {
                 if (worker.store.isInStore(i.second.source))
                     worker.store.computeFSClosure(worker.store.toStorePath(i.second.source), closure);
+            } catch (InvalidPath & e) {
             } catch (Error & e) {
                 throw Error(format("while processing ‘build-sandbox-paths’: %s") % e.what());
             }