aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-04-04 17:54:16 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-04-04 17:54:16 +0200
commit8decb07c31581febab664bedde12c8bf1367279e (patch)
tree726d45803ddcdd2d7c860591803588a3665e3dcb /src
parent488792a87d3dea18109fee7fa987f7edf6ba1149 (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')
-rw-r--r--src/libstore/build.cc2
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