summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2014-09-08 16:47:59 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2014-09-08 16:47:59 +0000
commit00a072a4784b0244f1059f20f996ef3b876e6e4b (patch)
tree5b9063feea0fd4546237e020b4997849538b6ce4
parentfcfb3954c19b8e4128e762c0e1d30da5da5bc42f (diff)
Put chpass(1) args between quotes.
spotted by matthieu@
-rw-r--r--usr.sbin/sysmerge/sysmerge.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sysmerge/sysmerge.sh b/usr.sbin/sysmerge/sysmerge.sh
index 76dd2cc675c..721c6976cc1 100644
--- a/usr.sbin/sysmerge/sysmerge.sh
+++ b/usr.sbin/sysmerge/sysmerge.sh
@@ -1,6 +1,6 @@
#!/bin/ksh -
#
-# $OpenBSD: sysmerge.sh,v 1.184 2014/09/08 11:27:49 halex Exp $
+# $OpenBSD: sysmerge.sh,v 1.185 2014/09/08 16:47:58 ajacoutot Exp $
#
# Copyright (c) 2008-2014 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 1998-2003 Douglas Barton <DougB@FreeBSD.org>
@@ -345,7 +345,7 @@ sm_add_user_grp() {
if [[ ${_u} != "root" ]]; then
if [[ -z $(grep -E "^${_u}:" /etc/master.passwd) ]]; then
sm_echo "===> Adding the ${_u} user"
- chpass -la ${_l} && \
+ chpass -la "${_l}" && \
set -A _newusr -- ${_newusr[@]} ${_u}
fi
fi