Skip to content

Commit

Permalink
lib-storage: fs_list_get_mailbox_flags() - Don't assume directories a…
Browse files Browse the repository at this point in the history
…lways have children.

This makes the directory handling code equivalent for type==UNKNOWN and
type==DIR.
  • Loading branch information
sirainen authored and villesavolainen committed Jun 9, 2017
1 parent 4d1d65a commit 788671d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-storage/list/mailbox-list-fs-flags.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 788671d

Please sign in to comment.