Subject: Braindead Ping and Fix
To: None <current-users@NetBSD.ORG>
From: Rens Troost <rens@imsi.com>
List: current-users
Date: 04/12/1995 14:54:14
Hi-

Ping returns 0 (sucess) regardless of whether the host was reachable
or not! This is very annoying. It was briefly fixed on BSDI 1.0, but I
guess the 4.4 version is broken and now BSDI 2.0 is broken again.

It would be nice to be able to use the exit status in scripts, as in 

	ping -c 5 $host && rsh $host reboot

Diff for 1.0:

	772c772
	<       exit(nreceived?0:1);
	---
	>       exit(0);

Diff for current:

	730c730
	<       exit(nreceived?0:1);
	---
	>       exit(0);