]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: module_dir_try_load_missing() - Add the wanted modules to be loaded to the error...
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Sun, 5 Oct 2025 19:51:22 +0000 (22:51 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 8 Oct 2025 09:30:35 +0000 (09:30 +0000)
This helps to understand what modules need to be explicitly loaded inside a
chroot.

src/lib/module-dir.c

index 4cc990550a3c0a462041e57b1d7186d555b7a00c..369450193d97da2cebf6d97cc101d9a99b6314df 100644 (file)
@@ -502,6 +502,10 @@ int module_dir_try_load_missing(struct module **modules,
                                           module_names_fix(module_names),
                                           set, error_r);
        } T_END_PASS_STR_IF(ret < 0, error_r);
+       if (ret < 0 && module_names != NULL) {
+               *error_r = t_strdup_printf("%s (trying to load modules: %s)",
+                       *error_r, t_strarray_join(module_names, " "));
+       }
        return ret;
 }