summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 05:12:36 +0000
committerjoey <joey>1999-08-17 05:12:36 +0000
commit6a33d33fd003b6d2f2864d700beb04b466c138b2 (patch)
tree49e7a3ab0bfcecb800abeb6c0d7656ccf31fe57e
parentf2e26db089daaeaa9e9821f01af0aab7b42b9dde (diff)
downloaddebhelper-6a33d33fd003b6d2f2864d700beb04b466c138b2.tar.gz
r195: Initial Import
-rw-r--r--autoscripts/postinst-suid2
-rw-r--r--debian/changelog8
2 files changed, 9 insertions, 1 deletions
diff --git a/autoscripts/postinst-suid b/autoscripts/postinst-suid
index de638efe..83f2f09f 100644
--- a/autoscripts/postinst-suid
+++ b/autoscripts/postinst-suid
@@ -1,6 +1,6 @@
if command -v suidregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then
suidregister -s #PACKAGE# /#FILE# #OWNER# #GROUP# #PERMS#
-else
+elif [ -e #FILE# ]; then
chown #OWNER#.#GROUP# /#FILE#
chmod #PERMS# /#FILE#
fi
diff --git a/debian/changelog b/debian/changelog
index 846eadf9..2ece6258 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+debhelper (1.2.56) unstable; urgency=low
+
+ * dh_suidregister: make the chown/chmod only happen if the file actually
+ exists. This is useful if you have conffiles that have permissions and
+ may be deleted. (#35845)
+
+ -- Joey Hess <joeyh@master.debian.org> Sat, 10 Apr 1999 13:35:23 -0700
+
debhelper (1.2.55) unstable; urgency=low
* Various man page enhancements.