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
+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.