NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/42179: route(8) fails to detect and complain about missing arguments



>Number:         42179
>Category:       bin
>Synopsis:       "route -n get" prints obscure error message instead of 
>complaining about the missing argument
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 13 21:30:00 +0000 2009
>Originator:     Christoph Badura
>Release:        NetBSD 5.99.20 (has been there forever)
>Organization:
        
bozotic software testing labs
>Environment:
        
        
System: NetBSD of-course-i-still-love-you 5.99.20 NetBSD 5.99.20 (XEN3_DOMU) 
#6: Mon Oct 12 22:27:22 UTC 2009 
root@of-course-i-still-love-you:/m/obj/m/src/sys/arch/i386/compile/XEN3_DOMU 
i386
Architecture: i386
Machine: i386
>Description:
        
Invoking route(8) in the form of "route -flags cmd" without the required
argument(s) for "cmd" causes it to print an obscure error message.

The error has been there since revision 1.1 of route.c.

>How-To-Repeat:
        
% route -n get
route: writing to routing socket: Invalid argument
% sudo route -n add 10.1.1.1
route: writing to routing socket: Invalid argument
add host 10.1.1.1: Invalid argument

>Fix:
        

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index