lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1530 - nss-pam-ldapd/debian

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1530 - nss-pam-ldapd/debian



Author: arthur
Date: Tue Aug 30 20:58:11 2011
New Revision: 1530
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1530

Log:
correctly handle leading and trailing spaces in preseeded uri option (patch by 
Andreas B. Mundt)

Modified:
   nss-pam-ldapd/debian/nslcd.postinst

Modified: nss-pam-ldapd/debian/nslcd.postinst
==============================================================================
--- nss-pam-ldapd/debian/nslcd.postinst Tue Aug 30 20:47:39 2011        (r1529)
+++ nss-pam-ldapd/debian/nslcd.postinst Tue Aug 30 20:58:11 2011        (r1530)
@@ -69,7 +69,7 @@
   # 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
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits