mirror of https://github.com/mirror/busybox.git
Merge d94d2b0a9e
into 371fe9f71d
commit
fd9252ee23
|
@ -36,6 +36,10 @@ void FAST_FUNC die_if_bad_username(const char *name)
|
|||
/* These chars are valid unless they are at the 1st pos: */
|
||||
if (*name == '-'
|
||||
|| *name == '.'
|
||||
|| *name == '@'
|
||||
|| *name == '%'
|
||||
|| *name == '/'
|
||||
|| *name == '\\'
|
||||
/* $ is allowed if it's the last char: */
|
||||
|| (*name == '$' && !name[1])
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue