From 8decb07c31581febab664bedde12c8bf1367279e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 4 Apr 2017 17:54:16 +0200 Subject: Allow default sandbox paths to be overriden E.g. you can now redirect /etc/resolv.conf to a different file. --- src/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstore/build.cc') diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 14982424d5ee..968e291129f3 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 -- cgit 1.4.1