Skip to contentSkip to conversation

Update old references to /usr/lib/iproute2

PATCH In review Yedaya Katsman 2 participants 2 messages Feb 28 – Mar 2

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

PATCH 1/1 Update old references to /usr/lib/iproute2

In 962692356a1c ("Makefile: use /usr/share/iproute2 for config files") The path was changed to /usr/share/, but a comment and a define were still using the old path, Update them.

---
 include/utils.h | 2 +-
 lib/rt_names.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/utils.h +1 -1
index e0a9c780cb9eb16223905374916813d1b1e7711f..9d3e152775904a7de0cfb5833128590eb94e2f7c 100644
@@ -40,7 +40,7 @@ extern int echo_request;
 extern int use_iec;
 
 #ifndef CONF_USR_DIR
-#define CONF_USR_DIR "/usr/lib/iproute2"
+#define CONF_USR_DIR "/usr/share/iproute2"
 #endif
 #ifndef CONF_ETC_DIR
 #define CONF_ETC_DIR "/etc/iproute2"
lib/rt_names.c +1 -1
index 7dc194b1530cfdad3bc3b20c3b9e3bb0d4d09cb0..01ad87b41cb2a02b7bf7ec12c8c50fc38830ebfa 100644
@@ -208,7 +208,7 @@ 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 /usr/share/iproute2/foo.d/X conf files, unless /etc/iproute2/foo.d/X exists */
 	rtnl_tabhash_readdir(dirpath_usr, dirpath_etc, tabhash, size);
 
 	/* load /etc/iproute2/foo.d/X conf files */

---
base-commit: 218757a8b8bb431b382d7a104edb6ed4336d3b43
change-id: 20260228-usr-lib-to-usr-share-c09a2ffd0f8a

Best regards,

Signature · 1 line
Yedaya Katsman <[email protected]>
#1 lore raw
Quoted 5 lines · On Sat, 28 Feb 2026 23:03:59 +0200 Yedaya Katsman <[email protected]> wrote:

In 962692356a1c ("Makefile: use /usr/share/iproute2 for config files") The path was changed to /usr/share/, but a comment and a define were still using the old path, Update them.

I would rather remove the #define's in include/utils.h The file is internal, and everywhere is using the values that are in the Makefile.

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]