diff options
author | illustris <rharikrishnan95@gmail.com> | 2021-07-13 15:34:14 +0530 |
---|---|---|
committer | illustris <rharikrishnan95@gmail.com> | 2021-07-13 15:34:14 +0530 |
commit | 7bc17a903bf3b71ce867ac5316b7e0a9e03c68b2 (patch) | |
tree | 7ef7a033b9fbf74ed1a5c95e17e2777bf181376d /src | |
parent | 9cf991f421b20a2c753df1f93730ddc8ddf7af6c (diff) |
fixed output derivations: fix incorrect responses for getpwuid
Passing nscd socket into the build environment causes unexpected behavior in programs that make getpwuid and other related calls.
relevant threads:
- https://github.com/NixOS/nix/issues/4991
- https://discourse.nixos.org/t/haunted-nix-build-breaks-isolation/13869
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/build/local-derivation-goal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc index 8320dd1c4..d4a412ff6 100644 --- a/src/libstore/build/local-derivation-goal.cc +++ b/src/libstore/build/local-derivation-goal.cc @@ -1754,7 +1754,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); } |