Bug#528007: update-exim4.conf only works with LC_ALL=C
Giuseppe Sacco
giuseppe at eppesuigoccas.homedns.org
Sun May 10 09:58:37 UTC 2009
I wrote a small patch for this bug:
===================================================
--- /usr/sbin/update-exim4.conf.orig 2009-05-02 09:57:17.000000000 +0200
+++ /usr/sbin/update-exim4.conf 2009-05-10 10:32:40.000000000 +0200
@@ -150,7 +150,7 @@
# add localhost, get rid of spaces, trailing (semi)colons and make the list
# colon separated
local_domains="$(echo @:localhost:"${dc_other_hostnames}" | \
- sed -e 'sÄ[;: ]*$ÄÄ' -e 'sÄ *ÄÄ' -e 'sÄ;Ä:Äg')"
+ env LC_ALL=C sed -e 'sÄ[;: ]*$ÄÄ' -e 'sÄ *ÄÄ' -e 'sÄ;Ä:Äg')"
UPEX4C_internal_tmp="$(tempfile -m600 -p ex4)"
===================================================
but I unsure if a better patch would be check for ${dc_other_hostnames}
for non ascii characters, like in:
===================================================
matches=$(echo "${dc_other_hostnames}" | egrep -c '^[A-Za-z0-9.:@-]*$')
if [ "$matches" -ne 1 ]
then
error ....
fi
local_domains="$(echo @:localhost:"${dc_other_hostnames}" | \
sed -e 's|[;: ]*$||' -e 's| *||' -e 's|;|:|g')"
===================================================
Bye,
Giuseppe
More information about the Pkg-exim4-maintainers
mailing list