66 lines
1.9 KiB
Plaintext
Executable File
66 lines
1.9 KiB
Plaintext
Executable File
#! /bin/sh -e
|
|
## 407_32char_grnames_240456.dpatch by xrgtn
|
|
##
|
|
## All lines beginning with `## DP:' are a description of the patch.
|
|
##
|
|
## DP: The patch allows 32 character long group names instead of only 16
|
|
## DP: characters.
|
|
## DP:
|
|
## DP: Comments from Karl Ramm (shadow 1:4.0.3-23, 28 Mar 2004 19:46:34 -0500):
|
|
## DP:
|
|
## DP: increase maximum group name size to 32 for no particularly good reason
|
|
## DP: closes: #240456
|
|
|
|
if [ $# -lt 1 ]; then
|
|
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
|
|
exit 1
|
|
fi
|
|
|
|
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
|
|
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
|
|
|
|
case "$1" in
|
|
-patch) patch -p1 ${patch_opts} < $0;;
|
|
-unpatch) patch -R -p1 ${patch_opts} < $0;;
|
|
*)
|
|
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
|
|
exit 1;;
|
|
esac
|
|
|
|
exit 0
|
|
|
|
@DPATCH@
|
|
|
|
Index: shadow-4.1.0/libmisc/chkname.c
|
|
===================================================================
|
|
--- shadow-4.1.0.orig/libmisc/chkname.c
|
|
+++ shadow-4.1.0/libmisc/chkname.c
|
|
@@ -70,10 +70,10 @@
|
|
bool is_valid_group_name (const char *name)
|
|
{
|
|
/*
|
|
- * Arbitrary limit for group names - max 16
|
|
- * characters (same as on HP-UX 10).
|
|
+ * Arbitrary limit for group names - max 32
|
|
+ * same as linux UT_NAMESIZE
|
|
*/
|
|
- if (strlen (name) > 16) {
|
|
+ if (strlen (name) > 32) {
|
|
return false;
|
|
}
|
|
|
|
return good_name (name);
|
|
Index: shadow-4.1.1/man/groupadd.8.xml
|
|
===================================================================
|
|
--- shadow-4.1.1.orig/man/groupadd.8.xml
|
|
+++ shadow-4.1.1/man/groupadd.8.xml
|
|
@@ -175,7 +175,7 @@
|
|
may follow. In regular expression terms: [a-z_][a-z0-9_-]*[$]
|
|
</para>
|
|
<para>
|
|
- Groupnames may only be up to 16 characters long.
|
|
+ Groupnames may only be up to 32 characters long.
|
|
</para>
|
|
<para>
|
|
You may not add a NIS or LDAP group. This must be performed on the
|