Update old references to /usr/lib/iproute2
Subsystems (3)
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.
Signed-off-by Yedaya Katsman <[email protected]>
--- include/utils.h | 2 +- lib/rt_names.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/utils.h +1 -1
@@ -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
@@ -208,7 +208,7 @@ rtnl_tabhash_initialize_dir(const char *ddir, const struct tabhash tabhash, conssnprintf (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]>
Quoted 5 lines · On Sat, 28 Feb 2026 23:03:59 +0200 Yedaya Katsman <[email protected]> wrote:
In
962692356a1c("Makefile: use/usr/share/iproute2for config files") The path was changed to/usr/share/, but a comment and a define were still using the old path, Update them.Signed-off-by Yedaya Katsman <[email protected]>
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
@@ -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]