Make /var/run/nscd/socket optional
Not every distribution uses nscd.
This commit is contained in:
parent
dfcd78d851
commit
488792a87d
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue