Bug#700344: unblock: icinga/1.7.1-6
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock
Please unblock package icinga
This upload fixes a bug that destroys icinga.cfg on systems that
replaced the config with symlinks. DSA has been bitten by that
problem.
unblock icinga/1.7.1-6
-- System Information:
Debian Release: 7.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.8.0-rc4+ (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u icinga-1.7.1/debian/icinga-common.postinst icinga-1.7.1/debian/icinga-common.postinst
--- icinga-1.7.1/debian/icinga-common.postinst
+++ icinga-1.7.1/debian/icinga-common.postinst
@@ -68,8 +68,6 @@
;;
esac
- cp -a -f "$conffile" "$conffile".tmp
-
# If the admin deleted or commented some variables but then set
# them via debconf, (re-)add them to the config file.
@@ -77,11 +75,8 @@
grep -Eq '^ *check_external_commands=' "$conffile" || \
echo "check_external_commands=" >> "$conffile"
- sed -e "s|^ *check_external_commands=.*|check_external_commands=$check_external_commands|" \
- < "$conffile" > "$conffile.tmp"
-
- mv -f "$conffile".tmp "$conffile"
-
+ sed --follow-symlinks -i -e "s|^ *check_external_commands=.|check_external_commands=$check_external_commands|" \
+ "$conffile"
# Stop a not already stopped icinga instance,
# debhelper will start it again automatically at the bottom
status="$(/etc/init.d/icinga status >/dev/null 2>&1; echo $?)"
diff -u icinga-1.7.1/debian/changelog icinga-1.7.1/debian/changelog
--- icinga-1.7.1/debian/changelog
+++ icinga-1.7.1/debian/changelog
@@ -1,3 +1,10 @@
+icinga (1.7.1-6) unstable; urgency=medium
+
+ * Don't destroy symlinked icinga configs with sed
+ (Closes: #698137)
+
+ -- Alexander Wirt <formorer@debian.org> Mon, 11 Feb 2013 22:03:15 +0100
+
icinga (1.7.1-5) unstable; urgency=high
* Apply fix for CVE-2012-6096 - buffer overflows in cgis
Reply to: