~ubuntu-branches/ubuntu/raring/shadow/raring-proposed

« back to all changes in this revision

Viewing changes to debian/patches/507_32char_grnames.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2009-05-05 09:45:21 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090505094521-wpk2wn3q7957tlah
Tags: 1:4.1.3.1-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Ubuntu specific:
    + debian/login.defs: use SHA512 by default for password crypt routine.
  - debian/patches/stdout-encrypted-password.patch: chpasswd can report
    password hashes on stdout (debian bug 505640).
  - debian/login.pam: Enable SELinux support (debian bug 527106).
  - debian/securetty.linux: support Freescale MX-series (debian bug 527095).
* Add debian/patches/300_lastlog_failure: fixed upstream (debian bug 524873).
* Drop debian/patches/593_omit_lastchange_field_if_clock_is_misset: fixed
  upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh -e
2
 
## 407_32char_grnames_240456.dpatch by xrgtn
3
 
##
4
 
## All lines beginning with `## DP:' are a description of the patch.
5
 
##
6
 
## DP: The patch allows 32 character long group names instead of only 16
7
 
## DP: characters.
8
 
## DP: 
9
 
## DP: Comments from Karl Ramm (shadow 1:4.0.3-23, 28 Mar 2004 19:46:34 -0500):
10
 
## DP: 
11
 
## DP: increase maximum group name size to 32 for no particularly good reason
12
 
## DP: closes: #240456
13
 
 
14
 
if [ $# -lt 1 ]; then
15
 
    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
16
 
    exit 1
17
 
fi
18
 
 
19
 
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
20
 
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
21
 
 
22
 
case "$1" in
23
 
    -patch) patch -p1 ${patch_opts} < $0;;
24
 
    -unpatch) patch -R -p1 ${patch_opts} < $0;;
25
 
    *)
26
 
        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
27
 
        exit 1;;
28
 
esac
29
 
 
30
 
exit 0
31
 
 
32
 
@DPATCH@
33
 
 
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
38
 
@@ -70,10 +70,10 @@
39
 
 int check_group_name (const char *name)
40
 
 {
41
 
        /*
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
46
 
         */
47
 
-       if (strlen (name) > 16)
48
 
+       if (strlen (name) > 32)
49
 
                return 0;
50
 
 
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
56
 
@@ -175,7 +175,7 @@
57
 
        may follow. In regular expression terms: [a-z_][a-z0-9_-]*[$]
58
 
      </para>
59
 
      <para>
60
 
-       Groupnames may only be up to 16 characters long.
61
 
+       Groupnames may only be up to 32 characters long.
62
 
      </para>
63
 
      <para>
64
 
        You may not add a NIS or LDAP group. This must be performed on the