]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: fs_list_get_mailbox_flags() - Don't assume directories always have children.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 30 May 2017 06:12:05 +0000 (09:12 +0300)
committerGitLab <gitlab@git.dovecot.net>
Tue, 30 May 2017 07:00:34 +0000 (10:00 +0300)
This makes the directory handling code equivalent for type==UNKNOWN and
type==DIR.

src/lib-storage/list/mailbox-list-fs-flags.c

index 30e5b9350a03cfc040a962c35d6d498d45c2fc7f..828ee5d6fec775fa5bcf84bd1fc979ea3e1f89af 100644 (file)
@@ -210,7 +210,7 @@ int fs_list_get_mailbox_flags(struct mailbox_list *list,
                   MAILBOX_LIST_FILE_TYPE_UNKNOWN because the filesystem didn't
                   return the type. Normally this should have already been
                   handled by the MAILBOX_LIST_FILE_TYPE_DIR check above. */
-               *flags_r |= MAILBOX_NOSELECT | MAILBOX_CHILDREN;
+               *flags_r |= MAILBOX_NOSELECT;
                return 1;
        }