From owner-cvs-usrsbin Sun Sep 29 12:13:38 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA09090 for cvs-usrsbin-outgoing; Sun, 29 Sep 1996 12:13:38 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA08800; Sun, 29 Sep 1996 12:13:02 -0700 (PDT) Date: Sun, 29 Sep 1996 12:13:02 -0700 (PDT) From: Bruce Evans Message-Id: <199609291913.MAA08800@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/lpr/lpd printjob.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 96/09/29 12:13:00 Modified: usr.sbin/lpr/lpd printjob.c Log: Close files up to getdtablesize(), instead of up to NOFILE. lpd was one of 3 programs in /usr/src that (mis)used NOFILE. Revision Changes Path 1.10 +9 -5 src/usr.sbin/lpr/lpd/printjob.c From owner-cvs-usrsbin Sun Sep 29 12:25:37 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA18010 for cvs-usrsbin-outgoing; Sun, 29 Sep 1996 12:25:37 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA17800; Sun, 29 Sep 1996 12:25:16 -0700 (PDT) Date: Sun, 29 Sep 1996 12:25:16 -0700 (PDT) From: Bruce Evans Message-Id: <199609291925.MAA17800@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin, cvs-usrsbin Subject: cvs commit: src/usr.bin/fstat fstat.c src/usr.sbin/pstat pstat.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 96/09/29 12:25:14 Modified: usr.bin/fstat fstat.c usr.sbin/pstat pstat.c Log: Include so that this doesn't depend on the KERNEL version of including . Only the !KERNEL version of will do that when I unspam the kernel headers. Revision Changes Path 1.7 +1 -0 src/usr.bin/fstat/fstat.c 1.24 +1 -0 src/usr.sbin/pstat/pstat.c From owner-cvs-usrsbin Sun Sep 29 20:19:43 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA26495 for cvs-usrsbin-outgoing; Sun, 29 Sep 1996 20:11:02 -0700 (PDT) Received: (from jkh@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA26343; Sun, 29 Sep 1996 20:10:35 -0700 (PDT) Date: Sun, 29 Sep 1996 20:10:35 -0700 (PDT) From: "Jordan K. Hubbard" Message-Id: <199609300310.UAA26343@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/fdwrite fdwrite.c Sender: owner-cvs-usrsbin@freebsd.org X-Loop: FreeBSD.org Precedence: bulk jkh 96/09/29 20:10:34 Modified: usr.sbin/fdwrite fdwrite.c Log: Make this more usable from shell scripts and such by adding a non-interactive flag and some checking to see if it's even reasonable to ask for confirmation at all. Revision Changes Path 1.4 +19 -9 src/usr.sbin/fdwrite/fdwrite.c From owner-cvs-usrsbin Mon Sep 30 12:50:31 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA28599 for cvs-usrsbin-outgoing; Mon, 30 Sep 1996 12:50:31 -0700 (PDT) Received: (from fenner@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA28289; Mon, 30 Sep 1996 12:50:05 -0700 (PDT) Date: Mon, 30 Sep 1996 12:50:05 -0700 (PDT) From: Bill Fenner Message-Id: <199609301950.MAA28289@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/traceroute Makefile README gnuc.h mean.awk median.awk traceroute.8 traceroute.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk fenner 96/09/30 12:50:02 Modified: usr.sbin/traceroute Makefile Removed: usr.sbin/traceroute README gnuc.h mean.awk median.awk traceroute.8 traceroute.c Log: Grab traceroute out of src/contrib/traceroute Revision Changes Path 1.5 +14 -3 src/usr.sbin/traceroute/Makefile From owner-cvs-usrsbin Mon Sep 30 15:27:47 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA07098 for cvs-usrsbin-outgoing; Mon, 30 Sep 1996 15:27:47 -0700 (PDT) Received: (from wpaul@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA06732; Mon, 30 Sep 1996 15:27:12 -0700 (PDT) Date: Mon, 30 Sep 1996 15:27:12 -0700 (PDT) From: Bill Paul Message-Id: <199609302227.PAA06732@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/ypserv yp_access.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 96/09/30 15:27:08 Modified: usr.sbin/ypserv yp_access.c Log: Close a potential security hole: if yp_access() is passed a map name, have it check to see that it doesn't contain any '/' characters. This prevents possible silliness like ypcat "../../../kernel". We already test the domain name for this in yp_validdomain(), and ypserv itself tests the map name in yp_open_db(), but it doesn't hurt to be paranoid and test for it in the generic access routine too. rpc.ypxfrd does not test the map name for slashes, but it does call yp_access() with the map name, so this removes a potential vulnerability from there. Also make the tests for IPPORT_RESERVED a little more selective: make sure it trips when map == master.passwd.*, prog == YPPROC and proc == YPPROC_XFR, and prog == YPXFRD_FREEBSD_PROG and proc == YPXFRD_GETMAP. Also use IPPORT_RESERVED instead of hard-coded value. Revision Changes Path 1.10 +15 -4 src/usr.sbin/ypserv/yp_access.c From owner-cvs-usrsbin Mon Sep 30 20:41:42 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA22362 for cvs-usrsbin-outgoing; Mon, 30 Sep 1996 20:41:42 -0700 (PDT) Received: (from pst@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA22348; Mon, 30 Sep 1996 20:41:32 -0700 (PDT) Date: Mon, 30 Sep 1996 20:41:32 -0700 (PDT) From: Paul Traina Message-Id: <199610010341.UAA22348@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/pppd auth.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk pst 96/09/30 20:41:32 Modified: usr.sbin/pppd auth.c Log: Fix potential buffer overrun Revision Changes Path 1.7 +8 -5 src/usr.sbin/pppd/auth.c From owner-cvs-usrsbin Tue Oct 1 16:14:53 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA08194 for cvs-usrsbin-outgoing; Tue, 1 Oct 1996 16:14:53 -0700 (PDT) Received: (from fenner@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA08167; Tue, 1 Oct 1996 16:14:38 -0700 (PDT) Date: Tue, 1 Oct 1996 16:14:38 -0700 (PDT) From: Bill Fenner Message-Id: <199610012314.QAA08167@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/mrouted main.c mapper.c mrinfo.c mtrace.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk fenner 96/10/01 16:14:37 Modified: usr.sbin/mrouted main.c mapper.c mrinfo.c mtrace.c Log: Release setuid immediately after initializing; this minimizes the possibility of security holes allowing root penetration. Inspired by: Mark Handley and Theo de Raadt independently Submitted by: Theo de Raadt Revision Changes Path 1.8 +3 -3 src/usr.sbin/mrouted/main.c 1.7 +7 -6 src/usr.sbin/mrouted/mapper.c 1.9 +7 -5 src/usr.sbin/mrouted/mrinfo.c 1.8 +4 -5 src/usr.sbin/mrouted/mtrace.c From owner-cvs-usrsbin Sat Oct 5 08:21:05 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA21282 for cvs-usrsbin-outgoing; Sat, 5 Oct 1996 08:21:05 -0700 (PDT) Received: (from peter@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA21263; Sat, 5 Oct 1996 08:20:54 -0700 (PDT) Date: Sat, 5 Oct 1996 08:20:54 -0700 (PDT) From: Peter Wemm Message-Id: <199610051520.IAA21263@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/syslogd syslogd.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 96/10/05 08:20:53 Modified: usr.sbin/syslogd syslogd.c Log: syslogd has always bugged me with it's async startup at boot time. For me, more often than not, the backgrounded syslogd daemon is not yet ready to process log messages before other things (such as named) want to log a heap of them. It seems that it's the O_SYNC writes of the stuff coming in from /dev/klog that's the slowdown. Anyway, instead of using the libc daemon, roll a modified version. This one has a timeout. The child will wait for either the timeout to expire or the child process to signal it to let it know that it's "ready" and the /dev/log socket is set up and active, so it's safe to continue the boot. It adds a small fraction of a second pause to the boot time, but on the other hand the overall boot time is *quicker* since the disk is not being thrashed while the log messages are getting written out synchronously one by one while other daemons are loading in parallel. The timeout is in case the child segfaults or something before becoming fully operational. Revision Changes Path 1.10 +71 -6 src/usr.sbin/syslogd/syslogd.c From owner-cvs-usrsbin Sat Oct 5 15:28:55 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA13026 for cvs-usrsbin-outgoing; Sat, 5 Oct 1996 15:28:55 -0700 (PDT) Received: (from wosch@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA12955; Sat, 5 Oct 1996 15:27:33 -0700 (PDT) Date: Sat, 5 Oct 1996 15:27:33 -0700 (PDT) From: Wolfram Schneider Message-Id: <199610052227.PAA12955@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-bin, cvs-user, cvs-games, cvs-lib, cvs-usrbin, cvs-gnu, cvs-libexec, cvs-sbin, cvs-usrsbin Subject: cvs commit: src/bin/ed ed.1 src/lib/libncurses curs_addch.3 curs_insstr.3 src/libexec/telnetd telnetd.8 src/sbin/mount_null mount_null.8 src/sbin/ping ping.8 src/usr.bin/cap_mkdb cap_mkdb.1 src/usr.bin/hexdump hexdump.1 src/usr.bin/ipcs ipcs.1 src/usr.bin/make make.1 src/usr.bin/quota quota.1 src/usr.bin/ranlib ranlib.1 src/usr.bin/tconv tconv.1 src/usr.bin/telnet telnet.1 src/usr.sbin/sa sa.8 src/usr.sbin/ypbind ypbind.8 src/bin/csh/USD.doc csh.1 csh.2 src/contrib/cvs/man cvs.1 src/contrib/libpcap pcap.3 src/contrib/tcl/doc FindExec.3 break.n continue.n expr.n unknown.n src/games/phantasia phantasia.6 src/games/sail sail.6 src/gnu/usr.bin/bc bc.1 src/gnu/usr.bin/perl/perl perl.1 src/gnu/usr.bin/texinfo/info info.1 src/lib/libc/db/man mpool.3 src/lib/libc/string memcmp.3 src/lib/libc/sys madvise.2 mkdir.2 src/lib/libc/xdr xdr.3 src/lib/libcompat/SysV ftok.3 src/lib/libftpio ftpio.3 src/usr.bin/sgmls/sgmls sgmls.1 src/usr.sbin/cdcontrol cdcontrol.1 src/usr.sbin/xntpd/doc tickadj.8 Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wosch 96/10/05 15:27:31 Modified: bin/csh/USD.doc csh.1 csh.2 bin/ed ed.1 contrib/cvs/man cvs.1 contrib/libpcap pcap.3 contrib/tcl/doc FindExec.3 break.n continue.n expr.n unknown.n games/phantasia phantasia.6 games/sail sail.6 gnu/usr.bin/bc bc.1 gnu/usr.bin/perl/perl perl.1 gnu/usr.bin/texinfo/info info.1 lib/libc/db/man mpool.3 lib/libc/string memcmp.3 lib/libc/sys madvise.2 mkdir.2 lib/libc/xdr xdr.3 lib/libcompat/SysV ftok.3 lib/libftpio ftpio.3 lib/libncurses curs_addch.3 curs_insstr.3 libexec/telnetd telnetd.8 sbin/mount_null mount_null.8 sbin/ping ping.8 usr.bin/cap_mkdb cap_mkdb.1 usr.bin/hexdump hexdump.1 usr.bin/ipcs ipcs.1 usr.bin/make make.1 usr.bin/quota quota.1 usr.bin/ranlib ranlib.1 usr.bin/sgmls/sgmls sgmls.1 usr.bin/tconv tconv.1 usr.bin/telnet telnet.1 usr.sbin/cdcontrol cdcontrol.1 usr.sbin/sa sa.8 usr.sbin/xntpd/doc tickadj.8 usr.sbin/ypbind ypbind.8 Log: delete doubled words, e.g.: "the the" -> "the" Revision Changes Path 1.3 +2 -2 src/bin/csh/USD.doc/csh.1 1.3 +2 -2 src/bin/csh/USD.doc/csh.2 1.8 +2 -2 src/bin/ed/ed.1 1.2 +3 -1 src/contrib/cvs/man/cvs.1 1.2 +4 -2 src/contrib/libpcap/pcap.3 1.2 +2 -1 src/contrib/tcl/doc/FindExec.3 1.2 +2 -1 src/contrib/tcl/doc/break.n 1.2 +2 -1 src/contrib/tcl/doc/continue.n 1.2 +2 -1 src/contrib/tcl/doc/expr.n 1.2 +2 -1 src/contrib/tcl/doc/unknown.n 1.2 +3 -1 src/games/phantasia/phantasia.6 1.2 +2 -1 src/games/sail/sail.6 1.3 +3 -2 src/gnu/usr.bin/bc/bc.1 1.3 +8 -2 src/gnu/usr.bin/perl/perl/perl.1 1.3 +3 -1 src/gnu/usr.bin/texinfo/info/info.1 1.2 +2 -1 src/lib/libc/db/man/mpool.3 1.2 +2 -1 src/lib/libc/string/memcmp.3 1.7 +2 -1 src/lib/libc/sys/madvise.2 1.2 +2 -1 src/lib/libc/sys/mkdir.2 1.3 +3 -1 src/lib/libc/xdr/xdr.3 1.5 +2 -2 src/lib/libcompat/SysV/ftok.3 1.11 +2 -1 src/lib/libftpio/ftpio.3 1.4 +3 -1 src/lib/libncurses/curs_addch.3 1.4 +3 -1 src/lib/libncurses/curs_insstr.3 1.4 +2 -2 src/libexec/telnetd/telnetd.8 1.5 +2 -2 src/sbin/mount_null/mount_null.8 1.3 +2 -1 src/sbin/ping/ping.8 1.2 +3 -2 src/usr.bin/cap_mkdb/cap_mkdb.1 1.5 +2 -1 src/usr.bin/hexdump/hexdump.1 1.3 +2 -2 src/usr.bin/ipcs/ipcs.1 1.5 +2 -1 src/usr.bin/make/make.1 1.3 +2 -2 src/usr.bin/quota/quota.1 1.3 +2 -1 src/usr.bin/ranlib/ranlib.1 1.3 +2 -1 src/usr.bin/sgmls/sgmls/sgmls.1 1.5 +3 -1 src/usr.bin/tconv/tconv.1 1.3 +2 -1 src/usr.bin/telnet/telnet.1 1.8 +3 -1 src/usr.sbin/cdcontrol/cdcontrol.1 1.4 +2 -2 src/usr.sbin/sa/sa.8 1.2 +8 -8 src/usr.sbin/xntpd/doc/tickadj.8 1.5 +2 -2 src/usr.sbin/ypbind/ypbind.8