From: Timo Sirainen Date: Fri, 16 Apr 2010 14:23:24 +0000 (+0300) Subject: lib-storage: Shared namespace's prefix_len wasn't updated after prefix was truncated. X-Git-Tag: 2.0.beta5~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d90e4f9a8f79f79c393aca23d0a897471dc2d8f;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Shared namespace's prefix_len wasn't updated after prefix was truncated. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/shared/shared-storage.c b/src/lib-storage/index/shared/shared-storage.c index d70d8ca092..636f2ecb21 100644 --- a/src/lib-storage/index/shared/shared-storage.c +++ b/src/lib-storage/index/shared/shared-storage.c @@ -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; }