diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-04-04T15·40+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-04-04T15·40+0200 |
commit | 488792a87d3dea18109fee7fa987f7edf6ba1149 (patch) | |
tree | 301e17add203377a4b07565c2219dec1c5c60c89 /src/libstore/build.cc | |
parent | dfcd78d851c14355a09f5b8845042ade098e739a (diff) |
Make /var/run/nscd/socket optional
Not every distribution uses nscd.
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 43a8dadf822a..14982424d5ee 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2405,7 +2405,8 @@ void DerivationGoal::runChild() ss.push_back("/etc/nsswitch.conf"); ss.push_back("/etc/services"); ss.push_back("/etc/hosts"); - ss.push_back("/var/run/nscd/socket"); + if (pathExists("/var/run/nscd/socket")) + ss.push_back("/var/run/nscd/socket"); } for (auto & i : ss) dirsInChroot[i] = i; |