]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Fail earlier if shared namespace prefix contains modifiers.
authorTimo Sirainen <tss@iki.fi>
Thu, 2 Sep 2010 16:28:10 +0000 (17:28 +0100)
committerTimo Sirainen <tss@iki.fi>
Thu, 2 Sep 2010 16:28:10 +0000 (17:28 +0100)
src/lib-storage/index/shared/shared-storage.c

index 3667aa1c19128fa39ba363f4a63fdbbb748c9bab..480c078c21dae51b8b563526eefea02bccdf6d74 100644 (file)
@@ -65,7 +65,7 @@ shared_storage_create(struct mail_storage *_storage, struct mail_namespace *ns,
                if (*p != '%')
                        continue;
 
-               key = var_get_key(p + 1);
+               key = p[1];
                if (key == 'u' || key == 'n')
                        have_username = TRUE;
                else if (key != '%' && key != 'd')