summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/usermgmt/share
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2014-03-14 03:25:33 +0000
committerdteske <dteske@FreeBSD.org>2014-03-14 03:25:33 +0000
commit665bd359af9bc22235165734a3da1841670fab33 (patch)
treeb0605068f3c57cf8c3ded4292e102a48dc6b0444 /usr.sbin/bsdconfig/usermgmt/share
parentf2ae41dff4554927813dd1efb74466d4289c9770 (diff)
downloadFreeBSD-src-665bd359af9bc22235165734a3da1841670fab33.zip
FreeBSD-src-665bd359af9bc22235165734a3da1841670fab33.tar.gz
Fix comments and whitespace.
Diffstat (limited to 'usr.sbin/bsdconfig/usermgmt/share')
-rw-r--r--usr.sbin/bsdconfig/usermgmt/share/group.subr13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/bsdconfig/usermgmt/share/group.subr b/usr.sbin/bsdconfig/usermgmt/share/group.subr
index ee60f78..dff0923 100644
--- a/usr.sbin/bsdconfig/usermgmt/share/group.subr
+++ b/usr.sbin/bsdconfig/usermgmt/share/group.subr
@@ -163,7 +163,7 @@ f_group_add()
elif [ "$group_password" ]; then
echo "$group_password" |
f_eval_catch $funcname \
- pw '%s -h 0' "$cmd"
+ pw '%s -h 0' "$cmd"
else
f_eval_catch $funcname pw '%s' "$cmd"
fi && break
@@ -324,7 +324,9 @@ f_group_delete()
# unchanged.
# VAR_GROUP_MEMBERS [Optional]
# Comma separated list of users that are a member of this group.
-# If NULL or unset, group membership is unmodified.
+# If set but NULL, group memberships are reset (no users will be
+# a member of this group). If unset, group membership is
+# unmodified.
# VAR_GROUP_PASSWORD [Optional]
# newgrp(1) password to set for the group. If unset, the password
# is unmodified. If NULL, the newgrp(1) password is disabled.
@@ -409,9 +411,8 @@ f_group_edit()
if [ "$group_password_disable" ]; then
f_eval_catch $funcname pw '%s -h -' "$cmd"
elif [ "$group_password" ]; then
- echo "$group_password" |
- f_eval_catch $funcname \
- pw '%s -h 0' "$cmd"
+ echo "$group_password" | f_eval_catch \
+ $funcname pw '%s -h 0' "$cmd"
else
f_eval_catch $funcname pw '%s' "$cmd"
fi && break
@@ -424,7 +425,7 @@ f_group_edit()
if ! f_input_group "$mtag"; then
f_show_err "$msg_group_not_found" "$mtag"
- # Attempt to fall back to prevoius selection
+ # Attempt to fall back to previous selection
f_input_group "$input" || return $FAILURE
else
input="$mtag"
OpenPOWER on IntegriCloud