]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Shared namespace's prefix_len wasn't updated after prefix was truncated.
authorTimo Sirainen <tss@iki.fi>
Fri, 16 Apr 2010 14:23:24 +0000 (17:23 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 16 Apr 2010 14:23:24 +0000 (17:23 +0300)
--HG--
branch : HEAD

src/lib-storage/index/shared/shared-storage.c

index d70d8ca0929217f84927754878aa63bf7428aee6..636f2ecb213ec37574ba67bf8ad9075a22cd7232 100644 (file)
@@ -80,6 +80,7 @@ shared_storage_create(struct mail_storage *_storage, struct mail_namespace *ns,
        /* truncate prefix after the above checks are done, so they can log
           the full prefix in error conditions */
        *wildcardp = '\0';
+       ns->prefix_len = strlen(ns->prefix);
        return 0;
 }