diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2021-01-18 18:13:25 -0800 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2021-01-18 18:26:36 -0800 |
commit | 1c10f3248378af987243049e0220964e3bdbbac0 (patch) | |
tree | 06a836f7aa8fe8e5e283f3ad0a287c5a0efac9c3 | |
parent | 67e43bbe042a44b0f224b96d9d065b94c5bf0405 (diff) | |
download | kmod-1c10f3248378af987243049e0220964e3bdbbac0.tar.gz kmod-1c10f3248378af987243049e0220964e3bdbbac0.tar.bz2 kmod-1c10f3248378af987243049e0220964e3bdbbac0.zip |
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.c | 2 |
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 }; |