Re: [PATCH 2/3] depmod: fix precedence order

From
Dmitry V. Levin <hidden>
Date
2021-01-19 18:32:44
Reply to
Lucas De Marchi, 2021-01-19
On Tue, Jan 19, 2021 at 06:52:37AM -0800, Lucas De Marchi wrote:
Configuration in /etc should have higher prio than /run.
Should it?  Isn't the common practice nowadays to have /run override /etc?
quoted hunk ↗ jump to hunk
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.
---
 tools/depmod.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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
 };
-- 
ldv
Thread (7 messages) 7 messages, 4 authors, last reply 2021-01-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help