On Wed, Feb 04, 2009 at 07:30:26PM +0100, martin f krafft wrote:
> Package: bitlbee
> Version: 1.2.3-1
> Severity: serious
> File: /etc/default/bitlbee
>
> dpkg-reconfigure overwrites changes in /etc/default/bitlbee. The
The postinst also modifies /etc/bitlbee/bitlbee.conf, which is a dpkg conffile:
if ! grep -qi '^User *= *' /etc/bitlbee/bitlbee.conf; then
echo 'Updating configuration file, enabling User-setting...'
if ! sed -i -e 's/# *User *= *.*/User = bitlbee/i'
/etc/bitlbee/bitlbee.conf; then
echo 'Failed! BitlBee may run as root now, please check your configs.'
fi
fi
Quoting policy 10.7.4:
The maintainer scripts must not alter a conffile of any package, including
the one the scripts belong to.
I recommend using ucf for this. I'll see about providing a patch.
--
Niko Tyni [email protected]
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]