From b9ba3020f8e3be67d13952fae451afc7219f83ef Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Mon, 26 Jul 2021 21:28:37 +0200 Subject: [PATCH] Don't check config directories with --no-config If we don't use 'em, we should not complain about 'em. --- src/env.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/env.cpp b/src/env.cpp index 5d41b1fff..cc27ad23d 100644 --- a/src/env.cpp +++ b/src/env.cpp @@ -425,7 +425,10 @@ void env_init(const struct config_paths_t *paths, bool do_uvars, bool default_pa init_input(); // Complain about invalid config paths. - path_emit_config_directory_messages(vars); + // HACK: Assume the defaults are correct (in practice this is only --no-config anyway). + if (!default_paths) { + path_emit_config_directory_messages(vars); + } // Initialize our uvars if requested. if (!do_uvars) {