aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2021-01-18 18:13:25 -0800
committerLucas De Marchi <lucas.demarchi@intel.com>2021-01-18 18:26:36 -0800
commit1c10f3248378af987243049e0220964e3bdbbac0 (patch)
tree06a836f7aa8fe8e5e283f3ad0a287c5a0efac9c3
parent67e43bbe042a44b0f224b96d9d065b94c5bf0405 (diff)
downloadkmod-1c10f3248378af987243049e0220964e3bdbbac0.tar.gz
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.
-rw-r--r--tools/depmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/depmod.c b/tools/depmod.c
index 3f31cdf..8e1d9ec 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
};