Make /var/run/nscd/socket optional

Not every distribution uses nscd.
This commit is contained in:
Eelco Dolstra 2017-04-04 17:40:50 +02:00
parent dfcd78d851
commit 488792a87d
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -2405,7 +2405,8 @@ void DerivationGoal::runChild()
ss.push_back("/etc/nsswitch.conf"); ss.push_back("/etc/nsswitch.conf");
ss.push_back("/etc/services"); ss.push_back("/etc/services");
ss.push_back("/etc/hosts"); 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; for (auto & i : ss) dirsInChroot[i] = i;