HomeFreeBSD

route(8): fix `route not found` exit code and warn with netlink

Description

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)

Details

Provenance
rcmAuthored on Sep 19 2023, 4:46 PM
zleiCommitted on Sep 1 2025, 2:14 PM
Reviewer
kp
Differential Revision
D41882: route(8): fix `route not found` exit code and warn with netlink
Parents
rG00d474e24217: git-blame-ignore-revs: witness white space cleanup and style(9) tweeks
Branches
Unknown
Tags
Unknown