Bug#680619: nullmailer: dpkg-reconfigure corrupts IPv6 zone index in "remotes"
Jay writes: > Pretty sure this also affects passwords with special characters. I'm not > sure what problem the postinst script is trying to solve. It is transforming this input format This is a colon-separated list of remote servers to which to send each message. Each entry contains a remote host name or address followed by an optional protocol string 'host protocol'. The protocol name defaults to smtp, and may be followed by command-line arguments for that module. . Examples: . smarthost smarthost smtp --port=10025 mail.example.com smtp --user=foo --pass=bar 192.168.1.254 qmqp [fe80::5054:ff:fef4:ef81] smtp Into a syntax compatible with /etc/nullmailer/remotes (see remotes(5)). I didn't write that sed snippet, but I guess the intent is to stick to posix tools to minimized dependencies. I suspect part of the answer is not to use : as an input separator. Apparently debconf can handle multiline strings directly using "debconf-escape", so maybe that can replace the broken sed.
Bug#680619: nullmailer: dpkg-reconfigure corrupts IPv6 zone index in "remotes"
Pretty sure this also affects passwords with special characters. I'm not sure what problem the postinst script is trying to solve.
Bug#680619: nullmailer: dpkg-reconfigure corrupts IPv6 zone index in "remotes"
Pretty sure the following contraption in the postinst script is responsible: 36 echo "$RET" | sed -r -e ':a s/(\[[^]:]*):/\1=/; ta' \ 37 -e 's/[[:space:]]*:[[:space:]]*/\n/g' \ 38 -e ':b s/(\[[^]=]*)=/\1:/; tb' \ 39 -e 's/[][]//g' > /etc/nullmailer/remotes Unfortunately I am not completely sure what happens here (and what could possibly removed or fixed). Jörg OpenPGP_signature Description: OpenPGP digital signature
Bug#680619: nullmailer: dpkg-reconfigure corrupts IPv6 zone index in remotes
Package: nullmailer Version: 1.11-1 Severity: normal Tags: ipv6 Nullmailer now supports IPv6 and the Debian packages allows IPv6 literals in debconf by wrapping them in [ ]. However the maintainer scripts don't cope with IPv6 link-local address literals having a zone index such as [fe80:5054:ff:fef4:ef81%eth1] which (in this example) gets corrupted to just 1 e. Nick -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org