[cvs] bogofilter/src bogoutil.c,1.210,1.211 paths.c,1.37,1.38

David Relson relson at osagesoftware.com
Wed Apr 20 13:17:33 CEST 2005


On Wed, 20 Apr 2005 12:30:31 +0200
Matthias Andree wrote:

> Matthias Andree <m-a at users.sourceforge.net> writes:
> 
> > Update of /cvsroot/bogofilter/bogofilter/src
> > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15261/src
> >
> > Modified Files:
> > 	bogoutil.c paths.c 
> > Log Message:
> > Back out paths.c change, breaks bogofilter.
> >
> > Index: bogoutil.c
> > ===================================================================
> > RCS file: /cvsroot/bogofilter/bogofilter/src/bogoutil.c,v
> > retrieving revision 1.210
> > retrieving revision 1.211
> > diff -u -d -r1.210 -r1.211
> > --- bogoutil.c	11 Apr 2005 19:06:31 -0000	1.210
> > +++ bogoutil.c	20 Apr 2005 02:33:27 -0000	1.211
> > @@ -850,6 +850,9 @@
> >  	exit(EX_ERROR);
> >      }
> >  
> > +    if (bfp->dirname == NULL)
> > +	bfp->dirname = xstrdup(CURDIR_S);
> > +
> 
> Gee, this appears to be a NO-OP. Holy cow, this is a nasty one, and I
> won't have time before Friday to look into this.
> 
> To reproduce the problem I was trying to fix:
> 
> cd $HOME/.bogofilter
> bogoutil -d wordlist.db >wordlist.txt
> 
> Prints «bogoutil: error: cannot normalize path "(null)": Invalid argument»

I wondered what problem you were trying to fix.

Would you also expect the following to work?

cd $BOGOFILTER_DIR
BOGOFILTER_DIR=""
bogoutil -d wordlist.db > wordlist.txt

I'll see if I can take a look at it this evening.



More information about the bogofilter-dev mailing list