diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-04-04 17:54:16 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-04-04 17:54:16 +0200 |
commit | 8decb07c31581febab664bedde12c8bf1367279e (patch) | |
tree | 726d45803ddcdd2d7c860591803588a3665e3dcb /src/libstore/build.cc | |
parent | 488792a87d3dea18109fee7fa987f7edf6ba1149 (diff) |
Allow default sandbox paths to be overriden
E.g. you can now redirect /etc/resolv.conf to a different file.
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 14982424d..968e29112 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2409,7 +2409,7 @@ void DerivationGoal::runChild() ss.push_back("/var/run/nscd/socket"); } - for (auto & i : ss) dirsInChroot[i] = i; + for (auto & i : ss) dirsInChroot.emplace(i, i); /* Bind-mount all the directories from the "host" filesystem that we want in the chroot |