diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-08-30 18:58:11 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-08-30 18:58:11 +0000 |
commit | 9e37fe65cfe2ceb0e7aba40be730c1ef02dbcdde (patch) | |
tree | 78c3e61e26a6064f1f7dc93acd34d1265dfa13c0 | |
parent | 7da6b32e51313c3b6de45c1507a69ff297e3d332 (diff) |
correctly handle leading and trailing spaces in preseeded uri option (patch by Andreas B. Mundt)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1530 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | debian/nslcd.postinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/nslcd.postinst b/debian/nslcd.postinst index 7e2a551..7262d88 100644 --- a/debian/nslcd.postinst +++ b/debian/nslcd.postinst @@ -69,7 +69,7 @@ cfg_uris() # escape all uri directives sed -i 's/^uri /_uri_ /i' $CONFFILE # set the uri options - echo "$uris" | sed 's/ */\n/g' | while read uri + echo "$uris" | sed 's/^[ \t]*//;s/[ \t]*$//;s/ */\n/g' | while read uri do if grep -qi '^_uri_ ' $CONFFILE then |