2
## 407_32char_grnames_240456.dpatch by xrgtn
4
## All lines beginning with `## DP:' are a description of the patch.
6
## DP: The patch allows 32 character long group names instead of only 16
9
## DP: Comments from Karl Ramm (shadow 1:4.0.3-23, 28 Mar 2004 19:46:34 -0500):
11
## DP: increase maximum group name size to 32 for no particularly good reason
12
## DP: closes: #240456
15
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
19
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
20
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
23
-patch) patch -p1 ${patch_opts} < $0;;
24
-unpatch) patch -R -p1 ${patch_opts} < $0;;
26
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
34
Index: shadow-4.1.0/libmisc/chkname.c
35
===================================================================
36
--- shadow-4.1.0.orig/libmisc/chkname.c
37
+++ shadow-4.1.0/libmisc/chkname.c
39
int check_group_name (const char *name)
42
- * Arbitrary limit for group names - max 16
43
- * characters (same as on HP-UX 10).
44
+ * Arbitrary limit for group names - max 32
45
+ * same as linux UT_NAMESIZE
47
- if (strlen (name) > 16)
48
+ if (strlen (name) > 32)
51
return good_name (name);
52
Index: shadow-4.1.1/man/groupadd.8.xml
53
===================================================================
54
--- shadow-4.1.1.orig/man/groupadd.8.xml
55
+++ shadow-4.1.1/man/groupadd.8.xml
57
may follow. In regular expression terms: [a-z_][a-z0-9_-]*[$]
60
- Groupnames may only be up to 16 characters long.
61
+ Groupnames may only be up to 32 characters long.
64
You may not add a NIS or LDAP group. This must be performed on the