Subject: bin/9707: ping6(8) lies about using
To: None <>
From: None <>
List: netbsd-bugs
Date: 03/29/2000 22:12:04
>Number:         9707
>Category:       bin
>Synopsis:       ping6(8) lies about using <sysexits.h>
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 29 22:12:00 2000
>Originator:     matthew green
people's front against (bozotic) www (softwar foundation)
>Release:        <NetBSD-current source date>feb 20
System: NetBSD 1.4T NetBSD 1.4T (_fish_) #10: Fri Mar 17 16:36:55 EST 2000 i386


	excerpt from ping6(8):

     The ping6 command returns an exit status of zero if at least one response
     was heard from the specified host; a status of two if the transmission
     was successful but no responses were received; or another value (from
     <sysexits.h>) if an error occurred.

	but in reality, the only calls to exit are as following and <sysexit.h>
	is not even included.

ping6.c:                exit(1);
ping6.c:        exit(nreceived == 0);
ping6.c:        exit(1);
ping6.c:        exit(1);

	additionally, there is no place that an exit status of 2 is used.


	read ping6(8). be curious why you can't get an exit status of 2 from
	it.  read ping6.c and see why.
	not given.  (fix program or docs).