From: joey <joey>
Date: Mon, 6 Nov 2000 01:05:13 +0000 (+0000)
Subject: r382:    * dh_suidregister: do not unregister on purge, since it will have already
X-Git-Tag: version_2.0.101~217
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=86f7ae9de59a682f596bff2fbaae1b7f05b82370;p=debhelper.git

r382:    * dh_suidregister: do not unregister on purge, since it will have already
     been unregistered then, and a warning will result.
---

diff --git a/autoscripts/postrm-suid b/autoscripts/postrm-suid
index 9712d25..340736a 100644
--- a/autoscripts/postrm-suid
+++ b/autoscripts/postrm-suid
@@ -1,3 +1,4 @@
-if [ -e /etc/suid.conf -a -x /usr/sbin/suidunregister ]; then
+if [ "$1" = remove -a -e /etc/suid.conf ] && \
+   command -v suidunregister >/dev/null 2>&1; then
         suidunregister -s #PACKAGE# /#FILE#
 fi
diff --git a/debian/changelog b/debian/changelog
index 6a4f994..403831e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+debhelper (2.1.20) unstable; urgency=low
+
+  * dh_suidregister: do not unregister on purge, since it will have already
+    been unregistered then, and a warning will result.
+
+ -- Joey Hess <joeyh@debian.org>  Sun,  5 Nov 2000 17:02:50 -0800
+
 debhelper (2.1.19) unstable; urgency=low
 
   * dh_builddeb: Ok, it is cosmetic, but it annoyed me.