From owner-cvs-sbin Sat Mar 1 22:32:47 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA24923 for cvs-sbin-outgoing; Sat, 1 Mar 1997 22:32:47 -0800 (PST) Received: (from imp@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA24916; Sat, 1 Mar 1997 22:32:45 -0800 (PST) Date: Sat, 1 Mar 1997 22:32:45 -0800 (PST) From: Warner Losh Message-Id: <199703020632.WAA24916@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/ping ping.c ping.8 Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk imp 97/03/01 22:32:44 Modified: sbin/ping ping.c ping.8 Log: 1) Fix usage to match convention and manual. Fix manual to match usage. 2) Must be root to run preload (OpenBSD ping.c 1.8) 3) Don't print all replies unless verbose and root (from idea in OpenBSD ping.c 1.10 and 1.11) to avoid leaking information available only to root. 4) Remove unused h: from option string to getopt. 5) Make the compiler happy with exit(0) (Lite-2?) Reviewed by: Dan Cross Good candidate for 2.2 and 2.1 (as are many of the 1.17 changes). Revision Changes Path 1.18 +17 -6 src/sbin/ping/ping.c 1.9 +9 -4 src/sbin/ping/ping.8