bashism in /etc/cron.daily/libdspam7-drv-mysql

Bug #88989 reported by Joe Barnett
2
Affects Status Importance Assigned to Milestone
dspam (Ubuntu)
Fix Released
Low
Michael Bienia

Bug Description

Binary package hint: libdspam7-drv-mysql

got the following error in cronjob:

/etc/cron.daily/libdspam7-drv-mysql:
/etc/cron.daily/libdspam7-drv-mysql: 17: Syntax error: Bad substitution
run-parts: /etc/cron.daily/libdspam7-drv-mysql exited with return code 2

... seems that line 17 of the cronjob is bash-specific, and fails if /bin/sh is linked to dash. changing #!/bin/sh to #!/bin/bash, or fixing line 17 to be dash compliant should fix the bug.

Revision history for this message
Lionel Porcheron (lionel.porcheron) wrote :

Confirming the bug.

Changed in dspam:
assignee: nobody → lionel.porcheron
status: Unconfirmed → Confirmed
Revision history for this message
Lionel Porcheron (lionel.porcheron) wrote :

The attached patch fix the issue. The bashism is replaced by a call to cut.

Revision history for this message
Michael Bienia (geser) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Format: 1.7
Date: Sun, 11 Mar 2007 14:25:06 +0100
Source: dspam
Binary: libdspam7-dev libdspam7-drv-pgsql dspam libdspam7-drv-mysql dspam-webfrontend dspam-doc
+libdspam7-drv-db4 libdspam7 libdspam7-drv-sqlite3
Architecture: source
Version: 3.6.8-4ubuntu1
Distribution: feisty
Urgency: low
Maintainer: Ubuntu MOTU Developers <email address hidden>
Changed-By: Lionel Porcheron <email address hidden>
Description:
 dspam - is a scalable, fast and statistical anti-spam filter
 dspam-doc - Documentation for dspam
 dspam-webfrontend - DSPAM is a scalable and statistical anti-spam filter
 libdspam7 - DSPAM is a scalable and statistical anti-spam filter
 libdspam7-dev - DSPAM is a scalable and statistical anti-spam filter
 libdspam7-drv-db4 - DSPAM is a scalable and statistical anti-spam filter
 libdspam7-drv-mysql - DSPAM is a scalable and statistical anti-spam filter
 libdspam7-drv-pgsql - DSPAM is a scalable and statistical anti-spam filter
 libdspam7-drv-sqlite3 - DSPAM is a scalable and statistical anti-spam filter
Launchpad-Bugs-Fixed: 88989
Changes:
 dspam (3.6.8-4ubuntu1) feisty; urgency=low
 .
   * debian/libdspam7-drv-mysql.cron.daily: use "cut -c1" instead of bashism
     (Closes LP: #88989)
   * debian/control: Change Maintainer/XSBC-Original-Maintainer field
Files:
 f4aab3e1a4bdfba9772ea9db9427144e 1335 mail optional dspam_3.6.8-4ubuntu1.dsc
 a5fbd4f69441d281142c61f78f156026 53896 mail optional dspam_3.6.8-4ubuntu1.diff.gz
Original-Maintainer: Debian DSPAM Maintainers <email address hidden>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.2 (GNU/Linux)

iQCVAwUBRfQS+qPP1313boLqAQPBkwQAxLlTS/LcrUBsu0huAdNkdb3+fk2MwX2k
R+f0s2onaQPQoV0areNV66qqtiWh6/WYELpTeqoC02Hlelu5G7LQJRYEgwa0WBv7
37BidE+nVbFV29/6gL5wH80OsSQkHe+eQm9J7SKUPLIvnp92LLGwaYaW+PU2xUtF
mSaj8O34kq0=
=K9oL
-----END PGP SIGNATURE-----

Changed in dspam:
assignee: lionel.porcheron → geser
importance: Undecided → Low
status: Confirmed → Fix Committed
Michael Bienia (geser)
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.