[cvs] bogofilter/src datastore_db_trans.c,1.30,1.31

David Relson relson at osagesoftware.com
Sun May 22 20:03:39 CEST 2005


On Sun, 22 May 2005 17:21:00 +0000
Matthias Andree wrote:

> Update of /cvsroot/bogofilter/bogofilter/src
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22565/src
> 
> Modified Files:
> 	datastore_db_trans.c 
> Log Message:
> Bugfix: Restore 'absolute' option for --db-list-logfiles.
> Bugfix: Use DIRSEP_S rather than hard-coded / as path separator.
> 
> Index: datastore_db_trans.c
> ===================================================================
> RCS file: /cvsroot/bogofilter/bogofilter/src/datastore_db_trans.c,v
> retrieving revision 1.30
> retrieving revision 1.31
> diff -u -d -r1.30 -r1.31
> --- datastore_db_trans.c	16 May 2005 11:24:09 -0000	1.30
> +++ datastore_db_trans.c	22 May 2005 17:20:58 -0000	1.31
> @@ -1031,6 +1031,8 @@
>      for (j = 0; j < argc; j++) {
>  	if (strcasecmp(argv[j], "all") == 0)
>  	    flags |= DB_ARCH_LOG;
> +	if (strcasecmp(argv[j], "absolute") == 0)
> +	    flags |= DB_ARCH_ABS;
>      }
>  
>      e = BF_LOG_ARCHIVE(dbe, &list, flags);
> @@ -1043,7 +1045,10 @@
>  
>      if (list) {
>  	for (i = list; *i; i++) {
> -	    printf("%s/%s\n", bfp->dirname, *i);
> +	    if (flags & DB_ARCH_ABS)
> +		puts(*i);
> +	    else
> +		printf("%s%s%s\n", bfp->dirname, DIRSEP_S, *i);
>  	}
>      }


Matthias,

I see you've restored the DB_ARCH_ABS code.  AFAIK it was only needed
to support t.bogoutil.  What else is it needed for?

David




More information about the bogofilter-dev mailing list