diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-06-25 03:05:36 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-06-25 03:05:36 +0000 |
| commit | 65fba082f44cb9451d2b12bcd99c3287d0a47acc (patch) | |
| tree | 69dfc2513865b6be1735837888f42e13b0b308b2 /usr.sbin | |
| parent | 4d299a767acce2841ded288e789a9c36620b57d7 (diff) | |
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/adduser/adduser.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/adduser/adduser.sh b/usr.sbin/adduser/adduser.sh index 94a59830c21e..96d567d133e0 100644 --- a/usr.sbin/adduser/adduser.sh +++ b/usr.sbin/adduser/adduser.sh @@ -574,13 +574,13 @@ get_groups() { if [ -z "$configflag" ]; then [ -z "$fflag" ] && echo -n "Login group is $_group. Invite $username" - [ -z "$fflag" ] && echo -n " into other (space separated) groups? [$ugroups]: " + [ -z "$fflag" ] && echo -n " into other groups? [$ugroups]: " else [ -z "$fflag" ] && echo -n "Enter additional groups [$ugroups]: " fi read _input - [ -n "$_input" ] && ugroups="$_input" + [ -n "$_input" ] && ugroups="$(echo "$_input" | tr -s ',:;' ' ')" } # get_expire_dates |
