dovecot-2.0: doveadm: dump didn't autodetect log if the path did...

dovecot at dovecot.org dovecot at dovecot.org
Sat Mar 6 14:08:52 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/68042df10756
changeset: 10851:68042df10756
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Mar 06 14:08:49 2010 +0200
description:
doveadm: dump didn't autodetect log if the path didn't contain '/'

diffstat:

 src/doveadm/doveadm-dump-log.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 257556760b62 -r 68042df10756 src/doveadm/doveadm-dump-log.c
--- a/src/doveadm/doveadm-dump-log.c	Sat Mar 06 14:05:25 2010 +0200
+++ b/src/doveadm/doveadm-dump-log.c	Sat Mar 06 14:08:49 2010 +0200
@@ -501,7 +501,7 @@
 
 	p = strrchr(path, '/');
 	if (p == NULL)
-		return FALSE;
+		p = path;
 	p = strstr(p, ".log");
 	if (p == NULL || !(p[4] == '\0' || p[4] == '.'))
 		return FALSE;


More information about the dovecot-cvs mailing list