int obj_refcount;
/* Linked list of all mailboxes in the storage */
struct mailbox *mailboxes;
+ /* A "root dir" to enable storage sharing. It is only ever used for
+ * uniqueness checking (via strcmp) and never used as a path. */
const char *unique_root_dir;
char *error_string;
return FALSE;
if ((storage->class_flags & MAIL_STORAGE_CLASS_FLAG_UNIQUE_ROOT) != 0 &&
- strcmp(storage->unique_root_dir, set->root_dir) != 0)
+ strcmp(storage->unique_root_dir, set->root_dir ? set->root_dir : "") != 0)
return FALSE;
if (strcmp(storage->name, "shared") == 0) {