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

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 12 Oct 2023 09:56:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274426

            Bug ID: 274426
           Summary: route get command returns a zero even no route is
                    found
           Product: Base System
           Version: 14.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: KOT@MATPOCKuH.Ru

I'm using FreeBSD 14.0 commit id 657aec455f7cd960c8fa79a089f88f450c568d2d

On 14.0 I got a new problem which route command - this command now returns 0 as
return code even no route is found:
# route -6 get ::
route: route has not been found: No error: 0
# echo $?
0

On 13.2 route get works properly:
# route -6 get ::
route: route has not been found
# echo $?
255

This looks like very old bug bin/112303

-- 
You are receiving this mail because:
You are the assignee for the bug.