diff options
author | Andy Pieters | 2015-06-11 16:28:25 +0100 |
---|---|---|
committer | Andy Pieters | 2015-06-11 16:28:25 +0100 |
commit | 30a4fba3ea5f82af772b6cc4f7e6b140d8cfafde (patch) | |
tree | 69462fd7d7d4fd28bac073a6202530044bca89a7 /username-allow-capitals.patch | |
download | aur-30a4fba3ea5f82af772b6cc4f7e6b140d8cfafde.tar.gz |
Migrated from AUR to AUR4; version 4.2.1-1
Diffstat (limited to 'username-allow-capitals.patch')
-rw-r--r-- | username-allow-capitals.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/username-allow-capitals.patch b/username-allow-capitals.patch new file mode 100644 index 000000000000..022473396f45 --- /dev/null +++ b/username-allow-capitals.patch @@ -0,0 +1,27 @@ +--- shadow-4.2.1/libmisc/chkname.c.orig 2014-05-08 09:43:11.000000000 +0100 ++++ shadow-4.2.1/libmisc/chkname.c 2014-07-19 11:13:35.157291993 +0100 +@@ -50,14 +50,22 @@ + { + /* + * User/group names must match [a-z_][a-z0-9_-]*[$] ++ * Path by Andy Pieters to allow Upper-case ++ * (match [A-Za-z_][A-Za-z_0-9-]*[$]) + */ +- if (('\0' == *name) || +- !((('a' <= *name) && ('z' >= *name)) || ('_' == *name))) { ++ ++ if ( ++ ('\0' == *name) || ++ !(( ('a' <= *name) && ('z' >= *name) ) || ++ ( ('A' <= *name) && ('Z'>=*name) ) || ++ ('_' == *name) ++ )) { + return false; + } + + while ('\0' != *++name) { + if (!(( ('a' <= *name) && ('z' >= *name) ) || ++ ( ('A' <= *name) && ('Z' >= *name) ) || + ( ('0' <= *name) && ('9' >= *name) ) || + ('_' == *name) || + ('-' == *name) || |