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

« back to all changes in this revision

Viewing changes to debian/login.preinst

  • 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:
29
29
            if dpkg --compare-versions $2 lt 1:4.0.3 ; then
30
30
                remove_md5 /etc/pam.d/login 5e61c3334e25625fe1fa4d79cf9123ff
31
31
                fi
32
 
        # Work around a misbehavior of gnome-system-tools that rewrites login.defs
33
 
        # https://bugs.launchpad.net/bugs/316756
34
 
        if [ -w /etc/login.defs ]; then
35
 
            if grep -q '^UID_MIN 1000$' /etc/login.defs; then
36
 
                sed -i -e 's/^UID_MIN 1000$/UID_MIN                      1000/' /etc/login.defs
37
 
            fi
38
 
            if grep -q '^UID_MAX 60000$' /etc/login.defs; then
39
 
                sed -i -e 's/^UID_MAX 60000$/UID_MAX                    60000/' /etc/login.defs
40
 
            fi
41
 
        fi
42
32
            fi
43
33
            
44
34
    ;;