Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 321568 Details for
Bug 431750
sys-apps/shadow - allow upper case in account names
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to add my patch to shadow-4.1.4.3
shadow-4.1.4.3-uppercase-in-usernames.patch (text/plain), 871 bytes, created by
BlackCore
on 2012-08-17 14:54:59 UTC
(
hide
)
Description:
Patch to add my patch to shadow-4.1.4.3
Filename:
MIME Type:
Creator:
BlackCore
Created:
2012-08-17 14:54:59 UTC
Size:
871 bytes
patch
obsolete
>--- shadow-4.1.4.3/libmisc/chkname.c 2012-08-17 17:13:31.794491492 +0400 >+++ shadow-4.1.4.3/libmisc/chkname.c 2012-08-17 17:15:18.615751619 +0400 >@@ -49,15 +49,20 @@ > static bool is_valid_name (const char *name) > { > /* >- * User/group names must match [a-z_][a-z0-9_-]*[$] >+ * User/group names must match [a-zA-Z_][a-zA-Z0-9_-]*[$] >+ * Allow user to use uppercase under his/her responsibility > */ > if (('\0' == *name) || >- !((('a' <= *name) && ('z' >= *name)) || ('_' == *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) ||
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 431750
:
321566
| 321568