aboutsummaryrefslogtreecommitdiffstats
path: root/add-user
diff options
context:
space:
mode:
Diffstat (limited to 'add-user')
-rwxr-xr-xadd-user6
1 files changed, 3 insertions, 3 deletions
diff --git a/add-user b/add-user
index ac54186..39fd59a 100755
--- a/add-user
+++ b/add-user
@@ -1,6 +1,6 @@
#!/bin/sh
#---------------------------------------------------------------
-# Project : Mandriva Linux
+# Project : Mageia Linux
# Module : rpm-helper
# File : add-user
# Version : $Id$
@@ -21,9 +21,9 @@ name=$3 # name of the user
dir=$4 # home directory
shell=$5 # shell
-if ! getent passwd $name > /dev/null 2>&1; then
+if ! getent passwd "$name" > /dev/null 2>&1; then
/usr/sbin/useradd -r -M -U \
- -s $shell -d $dir -c "system user for $pkg" $name > /dev/null
+ -s "$shell" -d "$dir" -c "system user for $pkg" "$name" > /dev/null
fi
exit 0