[Pkg-sssd-devel] sssd: Changes to 'debian-unstable'

Timo Aaltonen tjaalton-guest at alioth.debian.org
Wed Apr 10 13:28:54 UTC 2013


 debian/changelog          |    1 +
 debian/libnss-sss.postrm  |   15 +++++++++++----
 debian/libsss-sudo.postrm |   16 ++++++++++++----
 3 files changed, 24 insertions(+), 8 deletions(-)

New commits:
commit 7e955c0942e6b76de04d4a16f86868e9eb24aef7
Author: Timo Aaltonen <tjaalton at ubuntu.com>
Date:   Wed Apr 10 10:11:40 2013 +0300

    libsss-sudo.postrm: Run ldconfig on remove/purge.

diff --git a/debian/changelog b/debian/changelog
index 8454e43..38e8084 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -43,6 +43,7 @@ sssd (1.9.4-1) UNRELEASED; urgency=low
   * fix-cve-2013-0219*.diff, -0220.diff: Dropped, included upstream.
   * cve-2013-0287-*.diff: Patches from upstream stable tree to fix
     CVE-2013-0287 (versions 1.9.0 and up).
+  * libsss-sudo.postrm: Run ldconfig on remove/purge.
 
   [ Stéphane Graber ]
   * Add postinst/postrm script for libsss-sudo. Those will add a "sudoers"
diff --git a/debian/libsss-sudo.postrm b/debian/libsss-sudo.postrm
index 18e7ead..fbcf104 100644
--- a/debian/libsss-sudo.postrm
+++ b/debian/libsss-sudo.postrm
@@ -27,6 +27,7 @@ remove_nss_entry() {
 case "$1" in
     remove|purge)
         remove_nss_entry
+        ldconfig
     ;;
     upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
     ;;

commit 697c5a6e53cc2a6e32dbc9b62e8adb45d25eda79
Author: Timo Aaltonen <tjaalton at ubuntu.com>
Date:   Wed Apr 10 10:10:48 2013 +0300

    fix lib{nss-sss,sss-sudo}.postrm to use 'case'

diff --git a/debian/libnss-sss.postrm b/debian/libnss-sss.postrm
index baae1b1..84873db 100755
--- a/debian/libnss-sss.postrm
+++ b/debian/libnss-sss.postrm
@@ -24,8 +24,15 @@ remove_nss_entry() {
     ' /etc/nsswitch.conf
 }
 
-action="$1"
+case "$1" in
+    remove|purge)
+        remove_nss_entry
+    ;;
+    upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
 
-if [ "$action" = remove ]; then
-    remove_nss_entry
-fi
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
diff --git a/debian/libsss-sudo.postrm b/debian/libsss-sudo.postrm
index aaeb4de..18e7ead 100644
--- a/debian/libsss-sudo.postrm
+++ b/debian/libsss-sudo.postrm
@@ -24,8 +24,15 @@ remove_nss_entry() {
     ' /etc/nsswitch.conf
 }
 
-action="$1"
+case "$1" in
+    remove|purge)
+        remove_nss_entry
+    ;;
+    upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
 
-if [ "$action" = remove ]; then
-    remove_nss_entry
-fi
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac



More information about the Pkg-sssd-devel mailing list