[Pkg-dspam-misc] Bug#473027: Bashism in debian/libdspam7-drv-mysql.cron.daily (introduced with #448519)
Daniel Hahler
debian-bugs at thequod.de
Thu Mar 27 20:02:08 UTC 2008
Package: dspam
Version: 3.6.8-8
Severity: important
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu hardy ubuntu-patch
The fix for bug #448519 introduced a bashism:
Instead of "echo -e", please use "printf".
The bug has been reported in Ubuntu at https://launchpad.net/bugs/207579
-------------- next part --------------
diff -u dspam-3.6.8/debian/libdspam7-drv-mysql.cron.daily dspam-3.6.8/debian/libdspam7-drv-mysql.cron.daily
--- dspam-3.6.8/debian/libdspam7-drv-mysql.cron.daily
+++ dspam-3.6.8/debian/libdspam7-drv-mysql.cron.daily
@@ -17,7 +17,7 @@
UMASK_OLD="`umask`"
umask 077
[ -e "$MYSQLCONF_PASSWD" ] && rm "$MYSQLCONF_PASSWD"
- echo -e "[client]\npassword=$MYSQL_PASS" > "$MYSQLCONF_PASSWD"
+ printf "[client]\npassword=$MYSQL_PASS" > "$MYSQLCONF_PASSWD"
umask "$UMASK_OLD"
# If host is empty or starting with a / assume it's localhost.
More information about the Pkg-dspam-misc
mailing list