diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-01-10 06:35:04 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-01-10 06:35:04 +0000 |
commit | d2684d45e9746fe4429789eab673d6b026dad312 (patch) | |
tree | c52815e55632f0b32a2b7d9d093c0271df001864 /sys-apps/shadow/files | |
parent | initial import #40481 (Manifest recommit) (diff) | |
download | gentoo-2-d2684d45e9746fe4429789eab673d6b026dad312.tar.gz gentoo-2-d2684d45e9746fe4429789eab673d6b026dad312.tar.bz2 gentoo-2-d2684d45e9746fe4429789eab673d6b026dad312.zip |
Add patches to enable long group names #3485 and usernames with a . in them #22920.
Diffstat (limited to 'sys-apps/shadow/files')
-rw-r--r-- | sys-apps/shadow/files/shadow-4.0.6-dots-in-usernames.patch | 28 | ||||
-rw-r--r-- | sys-apps/shadow/files/shadow-4.0.6-long-groupnames.patch | 23 |
2 files changed, 51 insertions, 0 deletions
diff --git a/sys-apps/shadow/files/shadow-4.0.6-dots-in-usernames.patch b/sys-apps/shadow/files/shadow-4.0.6-dots-in-usernames.patch new file mode 100644 index 000000000000..c02fd8a656f3 --- /dev/null +++ b/sys-apps/shadow/files/shadow-4.0.6-dots-in-usernames.patch @@ -0,0 +1,28 @@ +Allow people to add users with dots in their names. + +http://bugs.gentoo.org/show_bug.cgi?id=22920 + +Index: libmisc/chkname.c +=================================================================== +RCS file: /cvsroot/shadow/libmisc/chkname.c,v +retrieving revision 1.8 +diff -u -r1.8 chkname.c +--- libmisc/chkname.c 12 May 2003 05:29:14 -0000 1.8 ++++ libmisc/chkname.c 10 Jan 2005 06:25:47 -0000 +@@ -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; + } diff --git a/sys-apps/shadow/files/shadow-4.0.6-long-groupnames.patch b/sys-apps/shadow/files/shadow-4.0.6-long-groupnames.patch new file mode 100644 index 000000000000..4ca93018a37d --- /dev/null +++ b/sys-apps/shadow/files/shadow-4.0.6-long-groupnames.patch @@ -0,0 +1,23 @@ +Remove arbitrary requirement on the length of groups. Perhaps we +should turn this into a configure option and send upstream ? + +http://bugs.gentoo.org/show_bug.cgi?id=3485 + +Index: libmisc/chkname.c +=================================================================== +RCS file: /cvsroot/shadow/libmisc/chkname.c,v +retrieving revision 1.8 +diff -u -r1.8 chkname.c +--- libmisc/chkname.c 12 May 2003 05:29:14 -0000 1.8 ++++ libmisc/chkname.c 10 Jan 2005 06:25:47 -0000 +@@ -58,8 +59,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); + } |