]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Previous change incorrectly reverted setting parent shared namespace...
authorTimo Sirainen <tss@iki.fi>
Wed, 4 Apr 2012 01:33:41 +0000 (04:33 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 4 Apr 2012 01:33:41 +0000 (04:33 +0300)
src/lib-storage/index/shared/shared-storage.c

index 651a058eba6ac54a25e7656f9f72f5c2037a24d3..f681d0ba81678db97bd38264cf4cd6e71aa9680d 100644 (file)
@@ -328,6 +328,9 @@ int shared_storage_get_namespace(struct mail_namespace **_ns,
                /* this user doesn't have a usable storage */
                new_ns->flags |= NAMESPACE_FLAG_UNUSABLE;
        }
+       /* mark the shared namespace root as usable, since it now has
+          child namespaces */
+       ns->flags |= NAMESPACE_FLAG_USABLE;
        *_name = mailbox_list_get_storage_name(new_ns->list,
                                t_strconcat(new_ns->prefix, name, NULL));
        *_ns = new_ns;