ALT Linux Bugzilla
– Attachment 4441 Details for
Bug 9202
dot in login names
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
good name
shadow-4.0.4.1-croc-good-name.patch (text/plain), 796 bytes, created by
Valery Inozemtsev
on 2010-06-30 17:07:06 MSD
(
hide
)
Description:
good name
Filename:
MIME Type:
Creator:
Valery Inozemtsev
Created:
2010-06-30 17:07:06 MSD
Size:
796 bytes
patch
obsolete
>--- shadow-4.0.4.1/libmisc/chkname.c.croc 2008-04-23 04:00:05.000000000 +0400 >+++ shadow-4.0.4.1/libmisc/chkname.c 2010-04-19 18:52:20.000000000 +0400 >@@ -18,13 +18,14 @@ RCSID ("$Id: chkname.c,v 1.8 2003/05/12 > static int good_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_-]* > */ >- if (!*name || !((*name >= 'a' && *name <= 'z') || *name == '_')) >+ if (!*name || !((*name >= 'a' && *name <= 'z') || (*name >= 'A' && *name <= 'Z') || *name == '_')) > return 0; > > while (*++name) { > if (!((*name >= 'a' && *name <= 'z') || >+ (*name >= 'A' && *name <= 'Z') || > (*name >= '0' && *name <= '9') || > *name == '_' || *name == '-' || > (*name == '$' && *(name + 1) == '\0')))
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 9202
:
1419
| 4441