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

David Relson <[email protected]>
Newsgroups gmane.mail.bogofilter.devel
Organization Osage Software Systems, Inc.
Message-ID <[email protected]>
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

_______________________________________________
Bogofilter-dev mailing list
[email protected]
http://www.bogofilter.org/mailman/listinfo/bogofilter-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.