Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/libnss-ldapd.postinst4
1 files changed, 1 insertions, 3 deletions
diff --git a/debian/libnss-ldapd.postinst b/debian/libnss-ldapd.postinst
index 04f7285..746ca0b 100644
--- a/debian/libnss-ldapd.postinst
+++ b/debian/libnss-ldapd.postinst
@@ -216,9 +216,7 @@ then
# modify /etc/nsswitch.conf
db_get libnss-ldapd/nsswitch
enablenss=`echo "$RET" | sed 's/,//g'`
- allnss=`sed -n 's/^\([a-z]*\):.*$/\1/p' /etc/nsswitch.conf`
- allnss=`echo $allnss $enablenss | sed 's/ /\n/g' | sort -u`
- for n in $allnss
+ for n in aliases ethers group hosts netgroup networks passwd protocols rpc services shadow
do
if echo ' '$enablenss' ' | grep -q ' '$n' '
then