]> Cypherpunks repositories - gostls13.git/commit
net: auto-reload the /etc/nsswitch.conf on unix systems
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Thu, 10 Nov 2022 18:52:22 +0000 (18:52 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 10 Nov 2022 21:11:02 +0000 (21:11 +0000)
commit79950a41625d1a041781e6344f5ca57308c7df08
tree3bfd304f925bf6f3dd38b417bdf1cec3e36c26e0
parentfcecf3e1fa318d4c3e8f2142d17bb2e481e94f9d
net: auto-reload the /etc/nsswitch.conf on unix systems

This change is made to align with the current (recently changed) glibc behaviour, it will allow the hostLookupOrder method to change its decisions on runtime (based on /etc/nsswitch.conf changes).

Fixes #56515

Change-Id: I241d67f053b6d2111eebcd67744adee02829166e
GitHub-Last-Rev: 82842c127474d5d225d2e9b68568387ee6b0ba04
GitHub-Pull-Request: golang/go#56588
Reviewed-on: https://go-review.googlesource.com/c/go/+/448075
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/net/conf.go
src/net/conf_test.go
src/net/nss.go