diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-08-23 01:44:11 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-08-23 01:44:11 +0000 |
commit | 3134fd883345668614da9890a0851f92dc392810 (patch) | |
tree | e431144fc47dfdc396bc8266bc76df354d7278f2 /sys-apps/shadow/files | |
parent | make sure lib64 is fixed even in src_install (diff) | |
download | gentoo-2-3134fd883345668614da9890a0851f92dc392810.tar.gz gentoo-2-3134fd883345668614da9890a0851f92dc392810.tar.bz2 gentoo-2-3134fd883345668614da9890a0851f92dc392810.zip |
Version bump.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sys-apps/shadow/files')
-rw-r--r-- | sys-apps/shadow/files/digest-shadow-4.0.12 | 1 | ||||
-rw-r--r-- | sys-apps/shadow/files/shadow-4.0.12-dots-in-usernames.patch | 49 | ||||
-rw-r--r-- | sys-apps/shadow/files/shadow-4.0.12-long-groupnames.patch | 39 |
3 files changed, 89 insertions, 0 deletions
diff --git a/sys-apps/shadow/files/digest-shadow-4.0.12 b/sys-apps/shadow/files/digest-shadow-4.0.12 new file mode 100644 index 000000000000..85c283816045 --- /dev/null +++ b/sys-apps/shadow/files/digest-shadow-4.0.12 @@ -0,0 +1 @@ +MD5 609a417a45827c36ba6e33f9dc785371 shadow-4.0.12.tar.bz2 1082217 diff --git a/sys-apps/shadow/files/shadow-4.0.12-dots-in-usernames.patch b/sys-apps/shadow/files/shadow-4.0.12-dots-in-usernames.patch new file mode 100644 index 000000000000..e0a5febe1ce2 --- /dev/null +++ b/sys-apps/shadow/files/shadow-4.0.12-dots-in-usernames.patch @@ -0,0 +1,49 @@ +Allow people to add users with dots in their names. + +http://bugs.gentoo.org/22920 + +--- libmisc/chkname.c ++++ libmisc/chkname.c +@@ -18,7 +18,7 @@ + static int good_name (const char *name) + { + /* +- * User/group names must match [a-z_][a-z0-9_-]* ++ * User/group names must match [a-z_][a-z0-9_-.$]* + */ + if (!*name || !((*name >= 'a' && *name <= 'z') || *name == '_')) + return 0; +@@ -27,6 +27,7 @@ + if (!((*name >= 'a' && *name <= 'z') || + (*name >= '0' && *name <= '9') || + *name == '_' || *name == '-' || ++ *name == '.' || + (*name == '$' && *(name + 1) == '\0'))) + return 0; + } +--- man/useradd.8 ++++ man/useradd.8 +@@ -128,6 +128,23 @@ + If no options are specified, + \fBuseradd\fR + displays the current default values. ++.SH RESTRICTS ++Currently, the shadow suite enforces the following restrictions on ++user names: ++ ++.nf ++\- must begin with a lower case letter or underscore ++\- can only contain lower case letters, underscores, and dashes ++\- may end with a dollar sign ++\- regex for these requirements: [a\-z_][a\-z0-9_\-$]* ++.fi ++ ++The length of usernames is restricted by glibc (via the UT_NAMESIZE define ++in the utmp header file). This may range from 8 characters on older ++systems to 32 characters on newer systems. ++ ++Note Gentoo adds a patch which allows people to create usernames with a ++dot in them. + .SH "NOTES" + .PP + The system administrator is responsible for placing the default user files in the diff --git a/sys-apps/shadow/files/shadow-4.0.12-long-groupnames.patch b/sys-apps/shadow/files/shadow-4.0.12-long-groupnames.patch new file mode 100644 index 000000000000..6d08bc7e8e8b --- /dev/null +++ b/sys-apps/shadow/files/shadow-4.0.12-long-groupnames.patch @@ -0,0 +1,39 @@ +Remove arbitrary requirement on the length of groups. Perhaps we +should turn this into a configure option and send upstream ? + +http://bugs.gentoo.org/3485 + +--- libmisc/chkname.c ++++ libmisc/chkname.c +@@ -59,8 +60,10 @@ + * Arbitrary limit for group names - max 16 + * characters (same as on HP-UX 10). + */ ++#if 0 + if (strlen (name) > 16) + return 0; ++#endif + + return good_name (name); + } +--- man/groupadd.8 ++++ man/groupadd.8 +@@ -46,6 +46,18 @@ + .TP + \fB\-o\fR + Allow add group wit non\-unique GID. ++.SH RESTRICTIONS ++Currently, the shadow suite enforces the following restrictions on group ++names: ++ ++.nf ++\- must begin with a lower case letter or underscore ++\- can only contain lower case letters, underscores, and dashes ++\- regex for these requirements: [a\-z_][a\-z0\-9_\-]* ++.fi ++ ++Normally shadow enforces a 16 character limit, but Gentoo adds patches to ++remove it. + .SH "FILES" + .TP + \fI/etc/group\fR |