Date: Mon, 01 Sep 2025 14:17:10 +0000 From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 274426] route get command returns a zero even no route is found Message-ID: <bug-274426-7501-XTtZn7bWNX@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-274426-7501@https.bugs.freebsd.org/bugzilla/> References: <bug-274426-7501@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274426 --- Comment #6 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Deb808098834bc0997fcbe7ca9d7ff1266= 3eff9d0 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(-) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274426-7501-XTtZn7bWNX>