dspam-3.6.8-5ubuntu1.2 cronjob fails for libdspam7-drv-mysql

Bug #207579 reported by Per Osbeck
4
Affects Status Importance Assigned to Milestone
dspam (Debian)
Fix Released
Unknown
dspam (Ubuntu)
Fix Released
High
Daniel Hahler
Dapper
Fix Released
Medium
Unassigned
Edgy
Fix Released
Medium
Unassigned
Feisty
Fix Released
Medium
Unassigned
Gutsy
Fix Released
Medium
Unassigned
Hardy
Fix Released
High
Daniel Hahler

Bug Description

Binary package hint: libdspam7-drv-mysql

dspam-3.6.8-5ubuntu1.2 fails running daily cronjob:

/etc/cron.daily/libdspam7-drv-mysql:
error: Found option without preceding group in config file: /var/run/libdspam7-drv-mysql.cron.passwd at line: 1
Fatal error in defaults handling. Program aborted

the cronjob generates a .passwd file that should contain mysql password.
if should look like this:
[client]
password=mypassword

but it looks like:
-e [client]
password=mypassword

so in the /etc/cron.daily/libdspam7-drv-mysql file there is a line generating this
echo -e "[client]\npassword=$MYSQL_PASS" > "$MYSQLCONF_PASSWD"

apparently -e also gets echoed for some reason.
Removing -e generates a correct file _with_ \n interpreted as newline.

this is on an up to date Gutsy server.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Thank you for reporting this bug.
Sorry, my security uploads introduced this regression, if you're using e.g. "dash" as /bin/sh.
Note to self, check scripts with "checkbashisms" from devscripts next time.
I will get this fixed ASAP.

Changed in dspam:
assignee: nobody → blueyed
importance: Undecided → High
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dspam - 3.6.8-8ubuntu1

---------------
dspam (3.6.8-8ubuntu1) hardy; urgency=low

  * debian/libdspam7-drv-mysql.cron.daily:
    Fix bashism (s/echo -e/printf/) (LP: #207579)
  * Modify Maintainer value to match the DebianMaintainerField
    specification.

 -- Daniel Hahler <email address hidden> Thu, 27 Mar 2008 20:27:37 +0100

Changed in dspam:
status: In Progress → Fix Released
Revision history for this message
Daniel Hahler (blueyed) wrote :
Revision history for this message
Daniel Hahler (blueyed) wrote :
Revision history for this message
Daniel Hahler (blueyed) wrote :
Revision history for this message
Daniel Hahler (blueyed) wrote :
Daniel Hahler (blueyed)
Changed in dspam:
importance: Undecided → Medium
status: New → In Progress
importance: Undecided → Medium
status: New → In Progress
importance: Undecided → Medium
status: New → In Progress
importance: Undecided → Medium
status: New → In Progress
description: updated
Revision history for this message
Kees Cook (kees) wrote :

Thanks! These should be published shortly.

Changed in dspam:
status: In Progress → Fix Committed
status: In Progress → Fix Committed
status: In Progress → Fix Committed
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dspam - 3.6.8-5ubuntu1.3

---------------
dspam (3.6.8-5ubuntu1.3) gutsy-security; urgency=low

  * debian/libdspam7-drv-mysql.cron.daily:
    Fix bashism introduced in previous security update (s/echo -e/printf/)
    (LP: #207579)

 -- Daniel Hahler <email address hidden> Thu, 27 Mar 2008 20:30:57 +0100

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dspam - 3.6.8-4ubuntu1.3

---------------
dspam (3.6.8-4ubuntu1.3) feisty-security; urgency=low

  * debian/libdspam7-drv-mysql.cron.daily:
    Fix bashism introduced in previous security update (s/echo -e/printf/)
    (LP: #207579)

 -- Daniel Hahler <email address hidden> Thu, 27 Mar 2008 20:36:35 +0100

Changed in dspam:
status: Fix Committed → Fix Released
status: Fix Committed → Fix Released
Changed in dspam:
status: Unknown → New
Kees Cook (kees)
Changed in dspam:
status: Fix Committed → Fix Released
status: Fix Committed → Fix Released
Changed in dspam:
status: New → Fix Committed
Changed in dspam:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.