From 64d190546d759138ebe31c8768021ea5a13e07f0 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Wed, 22 Sep 2021 13:38:20 -0700 Subject: [PATCH] core: Always add a search path when `-c` is passed to the cli. This way modular config load with just `-c` and don't require the extra `-s`. --- options.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/options.c b/options.c index df09ca8de..88de7b85e 100644 --- a/options.c +++ b/options.c @@ -444,6 +444,9 @@ options_check_args(int argc, char **argv, int *init_flags, string_array_t *paths if (confpath != NULL) fatal("--config may only be specified once"); confpath = a_strdup(optarg); + + /* Make sure multi-file config works */ + string_array_append(paths, g_path_get_dirname(optarg)); break; case 'm': /* Validation */