diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-12-10 22:03:49 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-12-10 22:03:49 +0100 |
commit | cc3abbbfbfde67905f426e25099e6fea6d7aa4f8 (patch) | |
tree | b5790ed702149fb23c0bbe1f987f74ed604d5979 | |
parent | 649257ad85839b9dd279a10e089d4375d2ecc567 (diff) |
fix a deprecated use of head without the -n option
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1566 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | debian/nslcd.config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/nslcd.config b/debian/nslcd.config index d99fe38..39f84db 100644 --- a/debian/nslcd.config +++ b/debian/nslcd.config @@ -57,7 +57,7 @@ guess_ldap_uri() # try to lookup _ldap._tcp SRV records if [ -n "$domain" ] then - server=`host -N 2 -t SRV _ldap._tcp.$domain 2> /dev/null | grep -v NXDOMAIN | awk '{print $NF}' | head -1 | sed 's/\.$//'` || true + server=`host -N 2 -t SRV _ldap._tcp.$domain 2> /dev/null | grep -v NXDOMAIN | awk '{print $NF}' | head -n 1 | sed 's/\.$//'` || true if [ -n "$server" ] then echo "ldap://$server/" |