]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: shared storage - Fix error message for failed storage creation
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 1 Nov 2023 14:35:05 +0000 (16:35 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:10 +0000 (12:34 +0200)
Dynamically created shared namespaces have no name, so use prefix instead.

Broken by a2e8bcd7657e00db5334073479d8fb674b114415

src/lib-storage/index/shared/shared-storage.c

index 02b1b963950fd036414624520e4f4d89d9b47c39..d742e2a3e18c4212e5c2bd3830d77fc2be7b35ee 100644 (file)
@@ -390,7 +390,7 @@ shared_mail_user_init(struct mail_storage *_storage,
        if (mail_storage_create(new_ns, NULL, _storage->flags |
                                MAIL_STORAGE_FLAG_NO_AUTOVERIFY, &error) < 0) {
                mailbox_list_set_critical(ns->list, "Namespace %s: %s",
-                                         new_ns->set->name, error);
+                                         new_ns->prefix, error);
                /* owner gets freed by namespace deinit */
                mail_namespace_destroy(new_ns);
                return -1;