dovecot-2.2: lib-storage: Hooks weren't called exactly in the or...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Nov 1 16:44:38 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/aa8f6832a5e9
changeset: 16900:aa8f6832a5e9
user: Timo Sirainen <tss at iki.fi>
date: Fri Nov 01 16:43:53 2013 +0200
description:
lib-storage: Hooks weren't called exactly in the order they were intended.
The comparison didn't skip the paths, so the "lib" prefix skipping didn't
work.
diffstat:
src/lib-storage/mail-storage-hooks.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 70f1d2bb0bd9 -r aa8f6832a5e9 src/lib-storage/mail-storage-hooks.c
--- a/src/lib-storage/mail-storage-hooks.c Wed Oct 30 12:11:54 2013 +0200
+++ b/src/lib-storage/mail-storage-hooks.c Fri Nov 01 16:43:53 2013 +0200
@@ -121,6 +121,12 @@
const struct mail_storage_module_hooks *h2)
{
const char *s1 = h1->module->path, *s2 = h2->module->path;
+ const char *p;
+
+ p = strrchr(s1, '/');
+ if (p != NULL) s1 = p+1;
+ p = strrchr(s2, '/');
+ if (p != NULL) s2 = p+1;
if (strncmp(s1, "lib", 3) == 0)
s1 += 3;
More information about the dovecot-cvs
mailing list