[Bug 274426] route get command returns a zero even no route is found

[email protected]
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274426

--- Comment #6 from [email protected] ---
A commit in branch stable/14 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=eb808098834bc0997fcbe7ca9d7ff12663eff9d0

commit eb808098834bc0997fcbe7ca9d7ff12663eff9d0
Author:     R. Christian McDonald <[email protected]>
AuthorDate: 2023-09-19 16:46:49 +0000
Commit:     Zhenlei Huang <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.