[Bug 274426] route get command returns a zero even no route is found
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 01 Sep 2025 14:17:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274426
--- Comment #6 from commit-hook@FreeBSD.org ---
A commit in branch stable/14 references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=eb808098834bc0997fcbe7ca9d7ff12663eff9d0
commit eb808098834bc0997fcbe7ca9d7ff12663eff9d0
Author: R. Christian McDonald <rcm@rcm.sh>
AuthorDate: 2023-09-19 16:46:49 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2025-09-01 14:14:43 +0000
route(8): fix `route not found` exit code and warn with netlink
Fix route(8) incorrectly returning a zero exit code even when unable to
find the specified route with route -n get <route>.
PR: 274426
Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D41882
(cherry picked from commit 2a78083fc2a14af863afb098925b0682698a2838)
sbin/route/route_netlink.c | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.