^(group|hosts)

This commit is contained in:
наб 2024-03-03 10:43:38 +01:00
parent e271fc1ea2
commit 5df51d163e
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1

View File

@ -32,7 +32,7 @@
if [ -e /etc/nsswitch.conf ]; then
INST_CFG /etc/nsswitch.conf
databases="$(awk '/^group|hosts/ {for(i = 2; i <= NF; ++i) print $i}' /etc/nsswitch.conf | LC_ALL=C sort -u)"
databases="$(awk '/^(group|hosts)/ {for(i = 2; i <= NF; ++i) print $i}' /etc/nsswitch.conf | LC_ALL=C sort -u)"
for db in $databases; do
for f in /lib/*/"libnss_$db"*; do
INST_LIB "$f"