[debian-lan-devel] [debian-lan] 01/02: Get rid of leading and trailing whitespace in names.

Andreas B. Mundt andi at moszumanska.debian.org
Sat Mar 1 18:01:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

andi pushed a commit to branch wheezy
in repository debian-lan.

commit 911bdd715ea0ec4260dfbb3a3b7790a14ed06afa
Author: Andreas B. Mundt <andi at debian.org>
Date:   Thu Dec 5 20:22:15 2013 +0100

    Get rid of leading and trailing whitespace in names.
    
    (cherry picked from commit 4f06d7a95e821486909494d3e032a530fc0a3cb9)
---
 fai/config/files/usr/local/sbin/add2gosa/GOSA | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/fai/config/files/usr/local/sbin/add2gosa/GOSA b/fai/config/files/usr/local/sbin/add2gosa/GOSA
index dd7eebd..5256778 100755
--- a/fai/config/files/usr/local/sbin/add2gosa/GOSA
+++ b/fai/config/files/usr/local/sbin/add2gosa/GOSA
@@ -47,9 +47,10 @@ ou2LDAP() {
 
 user2LDAP() {
     set +e
-    local FNAME=$1
-    local GNAME=$2
-    local GECOS="$(echo $GNAME $FNAME | iconv -f UTF-8 -t ASCII//TRANSLIT)"
+    # Get rid of leading and trailing whitespace:
+    local FNAME=$(echo $1)
+    local GNAME=$(echo $2)
+    local GECOS=$(echo $GNAME $FNAME | iconv -f UTF-8 -t ASCII//TRANSLIT)
     _USER="$3"
     _GROUP="$_USER"
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/debian-lan.git



More information about the debian-lan-devel mailing list