[Pkg-dspam-misc] Bug#498888: Bug#498888: Missing database name in /etc/cron.daily/libdspam7-drv-mysql

Julien Valroff julien at kirya.net
Tue Sep 16 18:25:45 UTC 2008


Le mardi 16 septembre 2008 à 14:18 -0400, Kurt B. Kaiser a écrit :
> This is a dupe of 481755, which is fixed at -9, now in unstable.
> 

all my apologies, I have totally missed this bug report

Cheers,
Julien

> On Sun, Sep 14 2008, Julien Valroff wrote:
> 
> > Package: libdspam7-drv-mysql
> > Version: 3.6.8-8.1
> > Severity: normal
> > Tags: patch
> >
> > Hi,
> >
> > Database name is missing in /etc/cron.daily/libdspam7-drv-mysql, which fails with
> > the following error:
> > ERROR 1046 (3D000) at line 5: No database selected
> >
> > The following patch solves the issue:
> >
> > diff -urN libdspam7-drv-mysql.orig  libdspam7-drv-mysql
> > --- libdspam7-drv-mysql.orig	2008-09-14 08:48:52.000000000 +0200
> > +++ libdspam7-drv-mysql	2008-09-14 08:45:21.000000000 +0200
> > @@ -26,7 +26,7 @@
> >          /usr/bin/mysql --defaults-file=$MYSQLCONF_PASSWD \
> >  	               --user=$MYSQL_USER $MYSQL_DB < $PURGE
> >      else
> > -        /usr/bin/mysql --defaults-file=$MYSQLCONF_PASSWD --host=$MYSQL_HOST --user=$MYSQL_USER < $PURGE
> > +        /usr/bin/mysql --defaults-file=$MYSQLCONF_PASSWD --host=$MYSQL_HOST --user=$MYSQL_USER $MYSQL_DB < $PURGE
> >      fi
> >  
> >      rm "$MYSQLCONF_PASSWD"
> 






More information about the Pkg-dspam-misc mailing list