diff --git a/libbb/die_if_bad_username.c b/libbb/die_if_bad_username.c index 46f1033404..eb69084d86 100644 --- a/libbb/die_if_bad_username.c +++ b/libbb/die_if_bad_username.c @@ -32,6 +32,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]) ) {