public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Yedaya Katsman <yedaya.ka@gmail.com>
To: Stephen Hemminger <stephen@networkplumber.org>,
	 David Ahern <dsahern@kernel.org>
Cc: Andrea Claudi <aclaudi@redhat.com>,
	 Luca Boccassi <luca.boccassi@gmail.com>,
	netdev@vger.kernel.org,  Yedaya Katsman <yedaya.ka@gmail.com>
Subject: [PATCH] Update old references to /usr/lib/iproute2
Date: Sat, 28 Feb 2026 23:03:59 +0200	[thread overview]
Message-ID: <20260228-usr-lib-to-usr-share-v1-1-a09da2a7675e@gmail.com> (raw)

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 <yedaya.ka@gmail.com>
---
 include/utils.h | 2 +-
 lib/rt_names.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/utils.h b/include/utils.h
index e0a9c780cb9eb16223905374916813d1b1e7711f..9d3e152775904a7de0cfb5833128590eb94e2f7c 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -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"
diff --git a/lib/rt_names.c b/lib/rt_names.c
index 7dc194b1530cfdad3bc3b20c3b9e3bb0d4d09cb0..01ad87b41cb2a02b7bf7ec12c8c50fc38830ebfa 100644
--- a/lib/rt_names.c
+++ b/lib/rt_names.c
@@ -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,
-- 
Yedaya Katsman <yedaya.ka@gmail.com>


             reply	other threads:[~2026-02-28 21:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-28 21:03 Yedaya Katsman [this message]
2026-03-02 16:18 ` [PATCH] Update old references to /usr/lib/iproute2 Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260228-usr-lib-to-usr-share-v1-1-a09da2a7675e@gmail.com \
    --to=yedaya.ka@gmail.com \
    --cc=aclaudi@redhat.com \
    --cc=dsahern@kernel.org \
    --cc=luca.boccassi@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=stephen@networkplumber.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox