Mercurial > dovecot > core-2.2
changeset 13229:7c088e4d56de
fts-lucene: Fixed doveadm dump's lucene-index detection.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 14 Aug 2011 20:40:49 +0300 |
parents | bed970b4ca5e |
children | 8e57be54d45b |
files | src/plugins/fts-lucene/doveadm-fts-lucene.c |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/fts-lucene/doveadm-fts-lucene.c Fri Aug 12 17:39:19 2011 +0300 +++ b/src/plugins/fts-lucene/doveadm-fts-lucene.c Sun Aug 14 20:40:49 2011 +0300 @@ -45,14 +45,10 @@ static bool test_dump_fts_lucene(const char *path) { - const char *p; struct stat st; - p = strrchr(path, '/'); - if (p++ == NULL) - p = path; - p = t_strconcat(p, "/segments.gen", NULL); - return stat(p, &st) == 0; + path = t_strconcat(path, "/segments.gen", NULL); + return stat(path, &st) == 0; } struct doveadm_cmd_dump doveadm_cmd_dump_fts_lucene = {