Bug#698137: destroys icinga.cfg on postinst when it's a symlink

2013-02-06 Thread Peter Palfrader
On Wed, 06 Feb 2013, Alexander Wirt wrote: > On Wed, 06 Feb 2013, Michael Stapelberg wrote: > > > On Mon, 14 Jan 2013 12:02:35 +0100 > > Peter Palfrader wrote: > > > so the postinst does effectively sed < $file > $file, and we all know > > > that this doesn't work and results in $file being empt

Bug#698137: destroys icinga.cfg on postinst when it's a symlink

2013-02-06 Thread Alexander Wirt
On Wed, 06 Feb 2013, Michael Stapelberg wrote: > On Mon, 14 Jan 2013 12:02:35 +0100 > Peter Palfrader wrote: > > so the postinst does effectively sed < $file > $file, and we all know > > that this doesn't work and results in $file being empty at the end. > I can reproduce this issue. > > Alexand

Bug#698137: destroys icinga.cfg on postinst when it's a symlink

2013-02-06 Thread Michael Stapelberg
On Mon, 14 Jan 2013 12:02:35 +0100 Peter Palfrader wrote: > so the postinst does effectively sed < $file > $file, and we all know > that this doesn't work and results in $file being empty at the end. I can reproduce this issue. Alexander, since you uploaded the last icinga packages, are you going

Bug#698137: destroys icinga.cfg on postinst when it's a symlink

2013-01-14 Thread Peter Palfrader
Package: icinga-common Version: 1.7.1-4 Severity: serious Tags: patch icinga-common's postinst has the following construct: | cp -a -f "$conffile" "$conffile".tmp | sed -e ... < "$conffile" > "$conffile.tmp" In my case, $conffile is a symlink: } lrwxrwxrwx 1 root root 26 Nov 1 15:11 /etc/icinga