From e0d8009d76b3a2451cb6c6ed2b241c7eff06ed60 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 26 Sep 2014 18:49:44 -0500 Subject: 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/pending.h | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/pending.h') diff --git a/lib/pending.h b/lib/pending.h index c98bb514..c67d81c8 100644 --- a/lib/pending.h +++ b/lib/pending.h @@ -2,6 +2,5 @@ // password.c #define MAX_SALT_LEN 20 //3 for id, 16 for key, 1 for '\0' -void is_valid_username(const char *name); int read_password(char * buff, int buflen, char* mesg); int update_password(char *filename, char* username, char* encrypted); -- cgit v1.2.3