The only illegal characters in a username are ":" (field separator), "\n" (line separ...
authorRob Landley <rob@landley.net>
Fri, 26 Sep 2014 23:49:44 +0000 (18:49 -0500)
committerRob Landley <rob@landley.net>
Fri, 26 Sep 2014 23:49:44 +0000 (18:49 -0500)
commite0d8009d76b3a2451cb6c6ed2b241c7eff06ed60
treef2904430b0cb86f7b7a2721ae2ddd60fcf727166
parente1fa787be8d0d66c9860c86dcb80fd6e096f74e0
The only illegal characters in a username are ":" (field separator), "\n" (line separator), and "/" (filename separator).

Restricting usernames to the legacy posix character allowed set (for filenames,
so the $HOME directory is creatable on VFAT and similar) means you can't have
UTF-8 usernames. Linux allows any character but / and NUL in filenames.
Since root is creating these entries, we assume root knows what it's doing.
lib/password.c
lib/pending.h
toys/pending/groupadd.c
toys/pending/useradd.c