From owner-cvs-sbin Sun Mar 2 03:21:12 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA04954 for cvs-sbin-outgoing; Sun, 2 Mar 1997 03:21:12 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA04947; Sun, 2 Mar 1997 03:21:10 -0800 (PST) Date: Sun, 2 Mar 1997 03:21:10 -0800 (PST) From: Joerg Wunsch Message-Id: <199703021121.DAA04947@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/scsiformat scsiformat.8 scsiformat.sh Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 97/03/02 03:21:09 Modified: sbin/scsiformat scsiformat.8 scsiformat.sh Log: Avoid the ``Three seconds until format begins'' construct. It's inconsistent with the remaining unix utilities, so replace it by something better suited. Learned from: The Unix Hater's Handbook :-) Revision Changes Path 1.8 +9 -2 src/sbin/scsiformat/scsiformat.8 1.5 +14 -13 src/sbin/scsiformat/scsiformat.sh From owner-cvs-sbin Sun Mar 2 03:27:17 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA05282 for cvs-sbin-outgoing; Sun, 2 Mar 1997 03:27:17 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA05273; Sun, 2 Mar 1997 03:27:16 -0800 (PST) Date: Sun, 2 Mar 1997 03:27:16 -0800 (PST) From: Joerg Wunsch Message-Id: <199703021127.DAA05273@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/scsiformat scsiformat.8 scsiformat.sh Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 97/03/02 03:27:15 Branch: sbin/scsiformat RELENG_2_2 Modified: sbin/scsiformat scsiformat.8 scsiformat.sh Log: YAMFC (rev 1.5/1.8, resp. Avoid inconsitent usage.) Revision Changes Path 1.4.2.2 +9 -2 src/sbin/scsiformat/scsiformat.8 1.1.4.2 +14 -13 src/sbin/scsiformat/scsiformat.sh From owner-cvs-sbin Sun Mar 2 06:43:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA14516 for cvs-sbin-outgoing; Sun, 2 Mar 1997 06:43:56 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA14509; Sun, 2 Mar 1997 06:43:54 -0800 (PST) Date: Sun, 2 Mar 1997 06:43:54 -0800 (PST) From: Joerg Wunsch Message-Id: <199703021443.GAA14509@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/restore tape.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 97/03/02 06:43:53 Branch: sbin/restore RELENG_2_2 Modified: sbin/restore tape.c Log: YAMFC (rev 1.7: minor problem for other-endian machines) Revision Changes Path 1.4.2.3 +4 -1 src/sbin/restore/tape.c From owner-cvs-sbin Sun Mar 2 11:39:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA27242 for cvs-sbin-outgoing; Sun, 2 Mar 1997 11:39:33 -0800 (PST) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id LAA27177; Sun, 2 Mar 1997 11:37:03 -0800 (PST) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <15883(7)>; Sun, 2 Mar 1997 11:36:31 PST Received: from localhost by crevenia.parc.xerox.com with SMTP id <177476>; Sun, 2 Mar 1997 11:36:20 -0800 To: Warner Losh cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org Subject: Re: cvs commit: src/sbin/ping ping.c ping.8 In-reply-to: Your message of "Sat, 01 Mar 97 22:32:45 PST." <199703020632.WAA24916@freefall.freebsd.org> Date: Sun, 2 Mar 1997 11:36:07 PST From: Bill Fenner Message-Id: <97Mar2.113620pst.177476@crevenia.parc.xerox.com> Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Warner Losh wrote: > 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. Is it a good idea to call getuid() for each packet? Wouldn't it make more sense to cache its value, since it's not going to change? (Perhaps at the same time as we setuid(getuid())?) Bill From owner-cvs-sbin Sun Mar 2 11:51:37 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA28112 for cvs-sbin-outgoing; Sun, 2 Mar 1997 11:51:37 -0800 (PST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id LAA28011; Sun, 2 Mar 1997 11:50:23 -0800 (PST) Received: from rover.village.org [127.0.0.1] by rover.village.org with esmtp (Exim 0.56 #1) id E0w1HH0-0005fW-00; Sun, 2 Mar 1997 12:50:18 -0700 To: Bill Fenner Subject: Re: cvs commit: src/sbin/ping ping.c ping.8 Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org In-reply-to: Your message of "Sun, 02 Mar 1997 11:36:07 PST." <97Mar2.113620pst.177476@crevenia.parc.xerox.com> References: <97Mar2.113620pst.177476@crevenia.parc.xerox.com> Date: Sun, 02 Mar 1997 12:50:18 -0700 From: Warner Losh Message-Id: Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <97Mar2.113620pst.177476@crevenia.parc.xerox.com> Bill Fenner writes: : Is it a good idea to call getuid() for each packet? Wouldn't it make : more sense to cache its value, since it's not going to change? (Perhaps : at the same time as we setuid(getuid())?) I don't think that it matters enough to be worth the extra effort at optimizing. getuid() is a cheap system call, and we only call getuid() when verbose is true. And then we should be doing that only once a second. However, in less time than it has taken me to whine about this, I've added it to my local copy and it compiles.... Warner From owner-cvs-sbin Sun Mar 2 12:01:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA28550 for cvs-sbin-outgoing; Sun, 2 Mar 1997 12:01:22 -0800 (PST) Received: (from imp@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA28543; Sun, 2 Mar 1997 12:01:19 -0800 (PST) Date: Sun, 2 Mar 1997 12:01:19 -0800 (PST) From: Warner Losh Message-Id: <199703022001.MAA28543@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/ping ping.8 ping.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk imp 97/03/02 12:01:18 Modified: sbin/ping ping.8 ping.c Log: 1) Minor nits in the usage message from bde. I took out the hard tabs and used spaces to align the second line under the program name. 2) Cache uid after call to setuid(getuid()) so we don't waste a system call for each packet with a call to getuid for the -v case. 3) Update manual to reflect new restriction on -l from last delta. Suggested by: bde, Bill Fenner Revision Changes Path 1.10 +2 -1 src/sbin/ping/ping.8 1.19 +5 -3 src/sbin/ping/ping.c From owner-cvs-sbin Sun Mar 2 12:02:34 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA28608 for cvs-sbin-outgoing; Sun, 2 Mar 1997 12:02:34 -0800 (PST) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id MAA28518; Sun, 2 Mar 1997 12:01:05 -0800 (PST) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <16352(8)>; Sun, 2 Mar 1997 12:00:34 PST Received: by crevenia.parc.xerox.com id <177476>; Sun, 2 Mar 1997 12:00:22 -0800 From: Bill Fenner To: fenner@parc.xerox.com, imp@village.org Subject: Re: cvs commit: src/sbin/ping ping.c ping.8 Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org Message-Id: <97Mar2.120022pst.177476@crevenia.parc.xerox.com> Date: Sun, 2 Mar 1997 12:00:21 PST Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >only once a second Unless you're using "ping -f", which the superuser may do, in which case you're doing it as fast as the network allows you to. Bill From owner-cvs-sbin Sun Mar 2 12:06:30 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA28775 for cvs-sbin-outgoing; Sun, 2 Mar 1997 12:06:30 -0800 (PST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id MAA28685; Sun, 2 Mar 1997 12:05:04 -0800 (PST) Received: from rover.village.org [127.0.0.1] by rover.village.org with esmtp (Exim 0.56 #1) id E0w1HVD-0005hs-00; Sun, 2 Mar 1997 13:04:59 -0700 To: Bill Fenner Subject: Re: cvs commit: src/sbin/ping ping.c ping.8 Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org In-reply-to: Your message of "Sun, 02 Mar 1997 12:00:21 PST." <97Mar2.120022pst.177476@crevenia.parc.xerox.com> References: <97Mar2.120022pst.177476@crevenia.parc.xerox.com> Date: Sun, 02 Mar 1997 13:04:59 -0700 From: Warner Losh Message-Id: Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <97Mar2.120022pst.177476@crevenia.parc.xerox.com> Bill Fenner writes: : >only once a second : : Unless you're using "ping -f", which the superuser may do, in which case : you're doing it as fast as the network allows you to. Ummmm, iff -f gives you ICMP packets that aren't ECHOREPLYs *AND* you are running -v. Otherwise no additional system calls happen due to the short-circuit nature of C. However, like I said before, I've changed it because it took less time than arguing :-). Warner From owner-cvs-sbin Sun Mar 2 13:43:15 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA04607 for cvs-sbin-outgoing; Sun, 2 Mar 1997 13:43:15 -0800 (PST) Received: (from jmg@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA04597; Sun, 2 Mar 1997 13:43:12 -0800 (PST) Date: Sun, 2 Mar 1997 13:43:12 -0800 (PST) From: John-Mark Gurney Message-Id: <199703022143.NAA04597@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/md5 md5.1 Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jmg 97/03/02 13:43:11 Modified: sbin/md5 md5.1 Log: mdoc'ify man page Revision Changes Path 1.4 +49 -35 src/sbin/md5/md5.1 From owner-cvs-sbin Sun Mar 2 15:38:08 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA10352 for cvs-sbin-outgoing; Sun, 2 Mar 1997 15:38:08 -0800 (PST) Received: (from jmg@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA10343; Sun, 2 Mar 1997 15:38:06 -0800 (PST) Date: Sun, 2 Mar 1997 15:38:06 -0800 (PST) From: John-Mark Gurney Message-Id: <199703022338.PAA10343@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/ping ping.8 Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jmg 97/03/02 15:38:06 Modified: sbin/ping ping.8 Log: fix man page to use marcos instead of parens, quotes and braces plus other minor fixes Revision Changes Path 1.11 +79 -60 src/sbin/ping/ping.8 From owner-cvs-sbin Sun Mar 2 21:49:54 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA01580 for cvs-sbin-outgoing; Sun, 2 Mar 1997 21:49:54 -0800 (PST) Received: (from mpp@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA01522; Sun, 2 Mar 1997 21:48:10 -0800 (PST) From: Mike Pritchard Message-Id: <199703030548.VAA01522@freefall.freebsd.org> Subject: Re: cvs commit: src/sbin/ping ping.8 To: jmg@freefall.freebsd.org (John-Mark Gurney) Date: Sun, 2 Mar 1997 21:48:10 -0800 (PST) Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org In-Reply-To: <199703022338.PAA10343@freefall.freebsd.org> from "John-Mark Gurney" at Mar 2, 97 03:38:06 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk John-Mark Gurney wrote: > > jmg 97/03/02 15:38:06 > > Modified: sbin/ping ping.8 > Log: > fix man page to use marcos instead of parens, quotes and braces > > plus other minor fixes As long as you are at it, this man page shouldn't use the .Tn macro for as many things as it does. If you want to do it, let me know, otherwise I'll take care of it. -- Mike Pritchard mpp@FreeBSD.org "Go that way. Really fast. If something gets in your way, turn" From owner-cvs-sbin Sun Mar 2 22:47:31 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA04869 for cvs-sbin-outgoing; Sun, 2 Mar 1997 22:47:31 -0800 (PST) Received: (from mpp@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA04854; Sun, 2 Mar 1997 22:47:28 -0800 (PST) Date: Sun, 2 Mar 1997 22:47:28 -0800 (PST) From: Mike Pritchard Message-Id: <199703030647.WAA04854@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/nologin nologin.5 Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk mpp 97/03/02 22:47:28 Modified: sbin/nologin nologin.5 Log: An odd merge from 2.2 to -current. Somehow that 2.2 nologin.5 man page was in better shape than the 3.0-current version, so I'm committing the 2.2 version to 3.0. Whatever happened, it was my fault :-). Revision Changes Path 1.3 +9 -7 src/sbin/nologin/nologin.5 From owner-cvs-sbin Sun Mar 2 22:55:43 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA05304 for cvs-sbin-outgoing; Sun, 2 Mar 1997 22:55:43 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA05283; Sun, 2 Mar 1997 22:55:31 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id RAA16901; Mon, 3 Mar 1997 17:44:39 +1100 Date: Mon, 3 Mar 1997 17:44:39 +1100 From: Bruce Evans Message-Id: <199703030644.RAA16901@godzilla.zeta.org.au> To: jmg@freefall.freebsd.org, mpp@freefall.freebsd.org Subject: Re: cvs commit: src/sbin/ping ping.8 Cc: cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> jmg 97/03/02 15:38:06 >> >> Modified: sbin/ping ping.8 >> Log: >> fix man page to use marcos instead of parens, quotes and braces >> >> plus other minor fixes > >As long as you are at it, this man page shouldn't use >the .Tn macro for as many things as it does. If you want >to do it, let me know, otherwise I'll take care of it. Quoting apostrophes is painful. Only 4 man pages in /usr/share/man previously did it. Is it a sinister plot to kill contractions? :-) Bruce From owner-cvs-sbin Sun Mar 2 23:01:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA06208 for cvs-sbin-outgoing; Sun, 2 Mar 1997 23:01:56 -0800 (PST) Received: (from mpp@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA06201; Sun, 2 Mar 1997 23:01:54 -0800 (PST) Date: Sun, 2 Mar 1997 23:01:54 -0800 (PST) From: Mike Pritchard Message-Id: <199703030701.XAA06201@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/adjkerntz adjkerntz.8 src/sbin/badsect badsect.8 src/sbin/clri clri.8 src/sbin/disklabel disklabel.8 src/sbin/dump dump.8 src/sbin/dumpfs dumpfs.8 src/sbin/fsck fsck.8 src/sbin/fsdb fsdb.8 src/sbin/ifconfig ifconfig.8 src/sbin/modload modload.8 src/sbin/newlfs newlfs.8 src/sbin/ping ping.8 src/sbin/reboot boot_i386.8 src/sbin/restore restore.8 src/sbin/route route.8 src/sbin/routed routed.8 src/sbin/routed/rtquery rtquery.8 src/sbin/scsi scsi.8 src/sbin/slattach slattach.8 src/sbin/i386/comcontrol comcontrol.8 src/sbin/startslip startslip.1 Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk mpp 97/03/02 23:01:53 Branch: sbin/adjkerntz RELENG_2_2 sbin/badsect RELENG_2_2 sbin/clri RELENG_2_2 sbin/disklabel RELENG_2_2 sbin/dump RELENG_2_2 sbin/dumpfs RELENG_2_2 sbin/fsck RELENG_2_2 sbin/fsdb RELENG_2_2 sbin/i386/comcontrol RELENG_2_2 sbin/ifconfig RELENG_2_2 sbin/modload RELENG_2_2 sbin/newlfs RELENG_2_2 sbin/ping RELENG_2_2 sbin/reboot RELENG_2_2 sbin/restore RELENG_2_2 sbin/route RELENG_2_2 sbin/routed RELENG_2_2 sbin/routed/rtquery RELENG_2_2 sbin/scsi RELENG_2_2 sbin/slattach RELENG_2_2 sbin/startslip RELENG_2_2 Modified: sbin/adjkerntz adjkerntz.8 sbin/badsect badsect.8 sbin/clri clri.8 sbin/disklabel disklabel.8 sbin/dump dump.8 sbin/dumpfs dumpfs.8 sbin/fsck fsck.8 sbin/fsdb fsdb.8 sbin/i386/comcontrol comcontrol.8 sbin/ifconfig ifconfig.8 sbin/modload modload.8 sbin/newlfs newlfs.8 sbin/ping ping.8 sbin/reboot boot_i386.8 sbin/restore restore.8 sbin/route route.8 sbin/routed routed.8 sbin/routed/rtquery rtquery.8 sbin/scsi scsi.8 sbin/slattach slattach.8 sbin/startslip startslip.1 Log: YAMFC: Mostly xrefs sorts, but some general man page cleanup and mdoc cleanup. Revision Changes Path 1.10.2.1 +3 -1 src/sbin/adjkerntz/adjkerntz.8 1.1.1.1.8.1 +3 -2 src/sbin/badsect/badsect.8 1.2.2.1 +2 -1 src/sbin/clri/clri.8 1.3.2.1 +3 -2 src/sbin/disklabel/disklabel.8 1.5.2.3 +5 -3 src/sbin/dump/dump.8 1.1.1.1.8.1 +4 -3 src/sbin/dumpfs/dumpfs.8 1.5.2.1 +2 -1 src/sbin/fsck/fsck.8 1.3.2.1 +4 -2 src/sbin/fsdb/fsdb.8 1.8.2.2 +3 -2 src/sbin/i386/comcontrol/comcontrol.8 1.9.2.1 +2 -2 src/sbin/ifconfig/ifconfig.8 1.7.2.1 +3 -3 src/sbin/modload/modload.8 1.2.2.1 +2 -1 src/sbin/newlfs/newlfs.8 1.3.2.5 +3 -3 src/sbin/ping/ping.8 1.4.2.1 +3 -3 src/sbin/reboot/boot_i386.8 1.5.2.2 +2 -1 src/sbin/restore/restore.8 1.7.2.1 +3 -2 src/sbin/route/route.8 1.2.2.1 +78 -30 src/sbin/routed/routed.8 1.1.1.1.2.1 +41 -14 src/sbin/routed/rtquery/rtquery.8 1.6.2.1 +3 -3 src/sbin/scsi/scsi.8 1.11.2.1 +4 -4 src/sbin/slattach/slattach.8 1.10.2.1 +3 -2 src/sbin/startslip/startslip.1 From owner-cvs-sbin Mon Mar 3 01:44:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA17172 for cvs-sbin-outgoing; Mon, 3 Mar 1997 01:44:22 -0800 (PST) Received: (from imp@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA17164; Mon, 3 Mar 1997 01:44:20 -0800 (PST) Date: Mon, 3 Mar 1997 01:44:20 -0800 (PST) From: Warner Losh Message-Id: <199703030944.BAA17164@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/ping ping.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk imp 97/03/03 01:44:20 Modified: sbin/ping ping.c Log: Backport changes from current: 1) getopt returnes -1 and remove 'h:' that isn't needed 2) -l needs super user now to work 3) check to make sure that address returned from gethostbyname will fit in sin_addr 4) Fix minor strncpy bug. 5) Don't leak information about ICMP packets that aren't for you, unless superuser. Revision Changes Path 1.8.2.8 +12 -3 src/sbin/ping/ping.c From owner-cvs-sbin Mon Mar 3 01:50:30 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA18140 for cvs-sbin-outgoing; Mon, 3 Mar 1997 01:50:30 -0800 (PST) Received: (from imp@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA18122; Mon, 3 Mar 1997 01:50:27 -0800 (PST) Date: Mon, 3 Mar 1997 01:50:27 -0800 (PST) From: Warner Losh Message-Id: <199703030950.BAA18122@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/ping ping.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk imp 97/03/03 01:50:26 Modified: sbin/ping ping.c Log: Check the size of the IP address reutrned from gethostbyname2, per PR 2578 from Julian A. Likely not strictly needed, but it doesn't hurt and protects ping against possible buffer overflows if the resolver were to return large IP addresses. Revision Changes Path 1.20 +3 -1 src/sbin/ping/ping.c From owner-cvs-sbin Mon Mar 3 02:07:17 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA18975 for cvs-sbin-outgoing; Mon, 3 Mar 1997 02:07:17 -0800 (PST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id BAA18629; Mon, 3 Mar 1997 01:58:58 -0800 (PST) Received: from rover.village.org [127.0.0.1] by rover.village.org with esmtp (Exim 0.56 #1) id E0w1UWG-0006aO-00; Mon, 3 Mar 1997 02:58:56 -0700 Subject: Re: cvs commit: src/sbin/ping ping.c Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org In-reply-to: Your message of "Mon, 03 Mar 1997 01:44:20 PST." <199703030944.BAA17164@freefall.freebsd.org> References: <199703030944.BAA17164@freefall.freebsd.org> Date: Mon, 03 Mar 1997 02:58:56 -0700 From: Warner Losh Message-Id: Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <199703030944.BAA17164@freefall.freebsd.org> Warner Losh writes: : imp 97/03/03 01:44:20 : : Modified: sbin/ping ping.c : Log: : Backport changes from current: : 1) getopt returnes -1 and remove 'h:' that isn't needed : 2) -l needs super user now to work : 3) check to make sure that address returned from gethostbyname will fit in : sin_addr : 4) Fix minor strncpy bug. : 5) Don't leak information about ICMP packets that aren't for you, unless : superuser. : : Revision Changes Path : 1.8.2.8 +12 -3 src/sbin/ping/ping.c Unless there are problems found with this, I'd like to merge it into the 2.1 branch. At least those parts that drop in easily, I'm not sure about #5. Also, the 2.1 branch should have other changes merged as well (specifically the setuid(getuid()) change and some of the -Q chanage that #5 depends on). Can anybody (besides Guido who is already look at it) review this? Warner From owner-cvs-sbin Mon Mar 3 05:23:57 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA28956 for cvs-sbin-outgoing; Mon, 3 Mar 1997 05:23:57 -0800 (PST) Received: (from bde@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA28949; Mon, 3 Mar 1997 05:23:55 -0800 (PST) Date: Mon, 3 Mar 1997 05:23:55 -0800 (PST) From: Bruce Evans Message-Id: <199703031323.FAA28949@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/i386/mount_msdos Makefile mount_msdos.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 97/03/03 05:23:55 Modified: sbin/i386/mount_msdos Makefile mount_msdos.c Log: Updated mount_msdos to use the Lite2 getvfsbyname() interface. Revision Changes Path 1.5 +2 -1 src/sbin/i386/mount_msdos/Makefile 1.8 +12 -11 src/sbin/i386/mount_msdos/mount_msdos.c From owner-cvs-sbin Mon Mar 3 06:03:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA01336 for cvs-sbin-outgoing; Mon, 3 Mar 1997 06:03:05 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA01286; Mon, 3 Mar 1997 06:02:32 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id AAA30346; Tue, 4 Mar 1997 00:48:47 +1100 Date: Tue, 4 Mar 1997 00:48:47 +1100 From: Bruce Evans Message-Id: <199703031348.AAA30346@godzilla.zeta.org.au> To: bde@freefall.freebsd.org, cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org Subject: Re: cvs commit: src/sbin/i386/mount_msdos Makefile mount_msdos.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >bde 97/03/03 05:23:55 > > Modified: sbin/i386/mount_msdos Makefile mount_msdos.c > Log: > Updated mount_msdos to use the Lite2 getvfsbyname() interface. This requires a very current kernel and libc to work. Test that you have the new interfaces using this or the Lite2-merged mount utility for some other unimportant filesystem before replacing /sbin/mount. Bruce From owner-cvs-sbin Tue Mar 4 14:05:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA18852 for cvs-sbin-outgoing; Tue, 4 Mar 1997 14:05:56 -0800 (PST) Received: (from imp@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA18840; Tue, 4 Mar 1997 14:05:53 -0800 (PST) Date: Tue, 4 Mar 1997 14:05:53 -0800 (PST) From: Warner Losh Message-Id: <199703042205.OAA18840@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/ping ping.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk imp 97/03/04 14:05:52 Modified: sbin/ping ping.c Log: Fix typo introduced in 1.17. Submitted by: "Philippe Charnier" Revision Changes Path 1.21 +2 -2 src/sbin/ping/ping.c From owner-cvs-sbin Wed Mar 5 04:08:50 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA11454 for cvs-sbin-outgoing; Wed, 5 Mar 1997 04:08:50 -0800 (PST) Received: (from bde@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA11447; Wed, 5 Mar 1997 04:08:47 -0800 (PST) Date: Wed, 5 Mar 1997 04:08:47 -0800 (PST) From: Bruce Evans Message-Id: <199703051208.EAA11447@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/ipfw ipfw.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 97/03/05 04:08:46 Modified: sbin/ipfw ipfw.c Log: Force null termination after 2 errant strncpy()s. Revision Changes Path 1.41 +3 -1 src/sbin/ipfw/ipfw.c From owner-cvs-sbin Wed Mar 5 04:30:16 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA12985 for cvs-sbin-outgoing; Wed, 5 Mar 1997 04:30:16 -0800 (PST) Received: (from bde@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA12973; Wed, 5 Mar 1997 04:30:12 -0800 (PST) Date: Wed, 5 Mar 1997 04:30:12 -0800 (PST) From: Bruce Evans Message-Id: <199703051230.EAA12973@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/ipfw ipfw.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 97/03/05 04:30:11 Branch: sbin/ipfw RELENG_2_2 Modified: sbin/ipfw ipfw.c Log: YAMFC (1.41: force null termination after 2 errant strncpy()s; 1.35: include and fix up some other #include messes). Revision Changes Path 1.34.2.3 +15 -9 src/sbin/ipfw/ipfw.c From owner-cvs-sbin Wed Mar 5 09:51:24 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA29938 for cvs-sbin-outgoing; Wed, 5 Mar 1997 09:51:24 -0800 (PST) Received: (from bde@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA29931; Wed, 5 Mar 1997 09:51:23 -0800 (PST) Date: Wed, 5 Mar 1997 09:51:23 -0800 (PST) From: Bruce Evans Message-Id: <199703051751.JAA29931@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/mount - Imported sources Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 97/03/05 09:51:22 src/sbin/mount - Imported sources Update of /home/ncvs/src/sbin/mount In directory freefall.freebsd.org:/c/bde/src/mount Revision/Branch: 1.1.1 Log Message: Attempt to import Lite2's mount. Status: Vendor Tag: CSRG Release Tags: bsd_44_lite_2 N src/sbin/mount/vfslist.c C src/sbin/mount/getmntopts.3 C src/sbin/mount/getmntopts.c C src/sbin/mount/Makefile C src/sbin/mount/mntopts.h C src/sbin/mount/mount.8 C src/sbin/mount/mount.c C src/sbin/mount/mount_ufs.c U src/sbin/mount/pathnames.h 7 conflicts created by this import. Use the following command to help the merge: cvs checkout -jCSRG:yesterday -jCSRG src/sbin/mount