diff options
author | Steve Langasek <vorlon@debian.org> | 2009-08-25 17:39:44 -0700 |
---|---|---|
committer | Steve Langasek <vorlon@debian.org> | 2019-01-08 21:25:57 -0800 |
commit | d907c391598ff1e9451ed52475c0c2bd1ca51093 (patch) | |
tree | 2fcb9eec63ad9de5d58b663af74eeff50cc4376e | |
parent | 80363113ea099c359b35bce4916f8726c2b6b1be (diff) | |
download | pam-d907c391598ff1e9451ed52475c0c2bd1ca51093.tar.gz pam-d907c391598ff1e9451ed52475c0c2bd1ca51093.tar.bz2 pam-d907c391598ff1e9451ed52475c0c2bd1ca51093.zip |
On upgrade from versions before 1.1.0-1, if
/etc/pam.d/common-session-noninteractive has not been created (because
the user declined use of pam-auth-update), create it by copying
/etc/pam.d/common-session. Closes: #543401.
-rw-r--r-- | debian/changelog | 4 | ||||
-rw-r--r-- | debian/libpam-runtime.postinst | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index acabb06c..1dc1e475 100644 --- a/debian/changelog +++ b/debian/changelog @@ -31,6 +31,10 @@ pam (1.1.0-1) UNRELEASED; urgency=low * Build with LDFLAGS=-Wl,-z,defs to guard against the possibility of any undefined symbols (due to typos or otherwise) at build time. Closes: #10231. + * On upgrade from versions before 1.1.0-1, if + /etc/pam.d/common-session-noninteractive has not been created (because + the user declined use of pam-auth-update), create it by copying + /etc/pam.d/common-session. Closes: #543401. -- Steve Langasek <vorlon@debian.org> Mon, 24 Aug 2009 01:23:18 -0700 diff --git a/debian/libpam-runtime.postinst b/debian/libpam-runtime.postinst index dbda6895..178d0e23 100644 --- a/debian/libpam-runtime.postinst +++ b/debian/libpam-runtime.postinst @@ -47,6 +47,10 @@ if [ -n "$force" ]; then /etc/pam.d/common-account.pam-old \ /etc/pam.d/common-password.pam-old \ /etc/pam.d/common-session.pam-old +elif dpkg --compare-versions "$2" lt-nl 1.1.0-1 \ + && [ ! -e /etc/pam.d/common-session-noninteractive ] +then + cp -a /etc/pam.d/common-session /etc/pam.d/common-session-noninteractive fi if [ -n "$UHOH" ]; then |