retitle 412185 postinst script overwrites /etc/default/atftpd, inetd.conf thanks
Hi,
This bug also applies to dpkg-reconfigure.
It can easily be fixed by changing /etc/default/atftpd to something like this:
# NOTE: USE_INETD and OPTIONS will be overwritten during an upgrade or when
# doing "dpkg-reconfigure atftpd". Only use USER_OPTIONS to specify custom
# options.
USER_OPTIONS=""
USE_INETD=...
OPTIONS="... $USER_OPTIONS"
Now, postinst could do something like:
(
grep -E -v '^(USE_INETD=|OPTIONS=)' /etc/default/atftpd
echo "USE_INETD=..."
echo "OPTIONS=\"... \$USER_OPTIONS\""
) > /etc/default/atftpd
This way the user may specify custom options that will not be overwritten by
the postinst script and there's a big fat warning that parts of the file might
get changed automatically.
I'm not quite sure how to solve this for inetd.conf though...
HTH,
Sebastian
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
signature.asc
Description: Digital signature

