]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: dump didn't autodetect log if the path didn't contain '/'
authorTimo Sirainen <tss@iki.fi>
Sat, 6 Mar 2010 12:08:49 +0000 (14:08 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 6 Mar 2010 12:08:49 +0000 (14:08 +0200)
--HG--
branch : HEAD

src/doveadm/doveadm-dump-log.c

index 0e619594434f995d0541b27838d1f5f3ba964aea..493f800c65bc8c38100c2a1bddf563309e74ce16 100644 (file)
@@ -501,7 +501,7 @@ static bool test_dump_log(const char *path)
 
        p = strrchr(path, '/');
        if (p == NULL)
-               return FALSE;
+               p = path;
        p = strstr(p, ".log");
        if (p == NULL || !(p[4] == '\0' || p[4] == '.'))
                return FALSE;