Merge pull request #5006 from illustris/nscd

fixed-output derivations: fix incorrect responses for getpwuid
This commit is contained in:
Eelco Dolstra
2021-07-13 17:20:37 +02:00
committed by GitHub

View File

@@ -1669,7 +1669,7 @@ void LocalDerivationGoal::runChild()
/* N.B. it is realistic that these paths might not exist. It
happens when testing Nix building fixed-output derivations
within a pure derivation. */
for (auto & path : { "/etc/resolv.conf", "/etc/services", "/etc/hosts", "/var/run/nscd/socket" })
for (auto & path : { "/etc/resolv.conf", "/etc/services", "/etc/hosts" })
if (pathExists(path))
ss.push_back(path);
}