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
commit eb4788954d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}