Skip to contentSkip to conversation

remove leftover references to /usr/lib/route2

PATCH Applied Stephen Hemminger 2 participants 2 messages Mar 2 – Mar 6

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove leftover references to /usr/lib/route2

Since commit 962692356a1c ("Makefile: use /usr/share/iproute2 for config files") the path was moved to /usr/share in Makefile; but there were leftover references.

---
 include/utils.h | 7 -------
 lib/rt_names.c  | 5 ++++-
 2 files changed, 4 insertions(+), 8 deletions(-)
include/utils.h +0 -7
index e0a9c780..adf6a581 100644
@@ -39,13 +39,6 @@ extern bool do_all;
 extern int echo_request;
 extern int use_iec;
 
-#ifndef CONF_USR_DIR
-#define CONF_USR_DIR "/usr/lib/iproute2"
-#endif
-#ifndef CONF_ETC_DIR
-#define CONF_ETC_DIR "/etc/iproute2"
-#endif
-
 #define SPRINT_BSIZE 64
 #define SPRINT_BUF(x)	char x[SPRINT_BSIZE]
 
lib/rt_names.c +4 -1
index 7dc194b1..3dba9642 100644
@@ -208,7 +208,10 @@ rtnl_tabhash_initialize_dir(const char *ddir, const struct tabhash tabhash, cons
 	snprintf(dirpath_usr, sizeof(dirpath_usr), "%s/%s", CONF_USR_DIR, ddir);
 	snprintf(dirpath_etc, sizeof(dirpath_etc), "%s/%s", CONF_ETC_DIR, ddir);
 
-	/* load /usr/lib/iproute2/foo.d/X conf files, unless /etc/iproute2/foo.d/X exists */
+	/*
+	 * load CONF_USR_DIR/iproute2/foo.d/X conf files
+	 * unless CONF_ETC_DIR/iproute2/foo.d/X exists
+	 */
 	rtnl_tabhash_readdir(dirpath_usr, dirpath_etc, tabhash, size);
 
 	/* load /etc/iproute2/foo.d/X conf files */
Signature · 1 line
2.51.0
#1 lore raw
This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:

Hello:

This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:

Quoted 8 lines · On Mon, 2 Mar 2026 08:40:07 -0800 you wrote:

Since commit 962692356a1c ("Makefile: use /usr/share/iproute2 for config files") the path was moved to /usr/share in Makefile; but there were leftover references.

[...]

Here is the summary with links:
- [iproute2] remove leftover references to /usr/lib/route2

    https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=bf0f8e79cd13

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html