From: Lucas De Marchi Date: Tue, 19 Jan 2021 02:13:25 +0000 (-0800) Subject: depmod: fix precedence order X-Git-Tag: v29~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c10f3248378af987243049e0220964e3bdbbac0;p=thirdparty%2Fkmod.git depmod: fix precedence order Configuration in /etc should have higher prio than /run. Given how rarely configuration in /run is used with depmod, this is likely not to cause any problems, even if it's a change in behavior. --- diff --git a/tools/depmod.c b/tools/depmod.c index 3f31cdfb..8e1d9ecb 100644 --- a/tools/depmod.c +++ b/tools/depmod.c @@ -51,8 +51,8 @@ static int verbose = DEFAULT_VERBOSE; static const char CFG_BUILTIN_KEY[] = "built-in"; static const char CFG_EXTERNAL_KEY[] = "external"; static const char *default_cfg_paths[] = { - "/run/depmod.d", SYSCONFDIR "/depmod.d", + "/run/depmod.d", "/lib/depmod.d", NULL };