Skip to content

Commit

Permalink
Make /var/run/nscd/socket optional
Browse files Browse the repository at this point in the history
Not every distribution uses nscd.
  • Loading branch information
edolstra committed Apr 4, 2017
1 parent dfcd78d commit 488792a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libstore/build.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 488792a

Please sign in to comment.