summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog4
-rw-r--r--debian/libpam-runtime.postinst4
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