Make addkey.sh work with usernames starting with a digit.
Reviewed by: des, krion Approved by: krion (mentor) Differential Revision: https://reviews.freebsd.org/D16549
This commit is contained in:
parent
95c7c9a309
commit
b383ffe681
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=52126
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ fi
|
|||
if [ -z "${me}" ] ; then
|
||||
error "Unable to determine user name."
|
||||
fi
|
||||
if ! expr "${me}" : '^[a-z][0-9a-z-]*$' >/dev/null ; then
|
||||
if ! expr "${me}" : '^[0-9a-z][0-9a-z-]*$' >/dev/null ; then
|
||||
error "${me} does not seem like a valid user name."
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue