From owner-cvs-usrbin Sun Mar 2 10:55:46 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA25479 for cvs-usrbin-outgoing; Sun, 2 Mar 1997 10:55:46 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA25472; Sun, 2 Mar 1997 10:55:44 -0800 (PST) Date: Sun, 2 Mar 1997 10:55:44 -0800 (PST) From: Joerg Wunsch Message-Id: <199703021855.KAA25472@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/more command.c more.1 Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 97/03/02 10:55:43 Modified: usr.bin/more command.c more.1 Log: Make more not immediately exit on a short file, if the -e option is given. This makes more -e basically usable at all when your termcap entry supports an alternate screen buffer (like xterm-r6). I wonder whether we should make more -e the default. Oure more seems to be the only one on the world with this funny behaviour. 2.2 candidate Submitted by: dawes@rf900.physics.usyd.edu.au (David Dawes) Revision Changes Path 1.7 +1 -1 src/usr.bin/more/command.c 1.4 +0 -3 src/usr.bin/more/more.1 From owner-cvs-usrbin Sun Mar 2 13:40:21 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA04491 for cvs-usrbin-outgoing; Sun, 2 Mar 1997 13:40:21 -0800 (PST) Received: (from ache@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA04482; Sun, 2 Mar 1997 13:40:19 -0800 (PST) Date: Sun, 2 Mar 1997 13:40:19 -0800 (PST) From: "Andrey A. Chernov" Message-Id: <199703022140.NAA04482@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/at at.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 97/03/02 13:40:18 Modified: usr.bin/at at.c Log: Fix MAXLOGNAME usage, the code has wrong assumption that it must be NULL terminated Revision Changes Path 1.11 +3 -3 src/usr.bin/at/at.c From owner-cvs-usrbin Sun Mar 2 16:57:52 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA17136 for cvs-usrbin-outgoing; Sun, 2 Mar 1997 16:57:52 -0800 (PST) Received: (from wosch@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA17129; Sun, 2 Mar 1997 16:57:50 -0800 (PST) Date: Sun, 2 Mar 1997 16:57:50 -0800 (PST) From: Wolfram Schneider Message-Id: <199703030057.QAA17129@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/make make.1 Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wosch 97/03/02 16:57:50 Modified: usr.bin/make make.1 Log: Add enviroment variable MAKEOBJDIRPREFIX, still undocumented except in bsd.obj.mk. Revision Changes Path 1.9 +2 -1 src/usr.bin/make/make.1 From owner-cvs-usrbin Sun Mar 2 17:50:20 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA20145 for cvs-usrbin-outgoing; Sun, 2 Mar 1997 17:50:20 -0800 (PST) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA20034; Sun, 2 Mar 1997 17:48:20 -0800 (PST) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id SAA01676; Sun, 2 Mar 1997 18:48:15 -0700 (MST) Date: Sun, 2 Mar 1997 18:48:15 -0700 (MST) Message-Id: <199703030148.SAA01676@rocky.mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Joerg Wunsch Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org Subject: Re: cvs commit: src/usr.bin/more command.c more.1 In-Reply-To: <199703021855.KAA25472@freefall.freebsd.org> References: <199703021855.KAA25472@freefall.freebsd.org> Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Modified: usr.bin/more command.c more.1 > Log: > Make more not immediately exit on a short file, if the -e option is > given. This makes more -e basically usable at all when your termcap > entry supports an alternate screen buffer (like xterm-r6). Is there a way to make more ignore the alternate screen buffer feature? I often ctrl-Z out of the files I'm editing and more the original file to see what I just deleted accidentally, or more a file and use the scrollbar to go look at what it was. The alternate screen stuff makes the scrollbars useless, so even if my screen supports it I want them disabled at least some of the time. Nate From owner-cvs-usrbin Sun Mar 2 23:58:04 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA09273 for cvs-usrbin-outgoing; Sun, 2 Mar 1997 23:58:04 -0800 (PST) Received: (from ache@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA09264; Sun, 2 Mar 1997 23:58:02 -0800 (PST) Date: Sun, 2 Mar 1997 23:58:02 -0800 (PST) From: "Andrey A. Chernov" Message-Id: <199703030758.XAA09264@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/at at.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 97/03/02 23:58:01 Modified: usr.bin/at at.c Log: Back out MAXLOGNAME fix, Bruce points that copyinstr require NUL Revision Changes Path 1.12 +2 -2 src/usr.bin/at/at.c From owner-cvs-usrbin Mon Mar 3 09:22:00 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA14733 for cvs-usrbin-outgoing; Mon, 3 Mar 1997 09:22:00 -0800 (PST) Received: (from bde@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA14726; Mon, 3 Mar 1997 09:21:58 -0800 (PST) Date: Mon, 3 Mar 1997 09:21:58 -0800 (PST) From: Bruce Evans Message-Id: <199703031721.JAA14726@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/lsvfs lsvfs.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 97/03/03 09:21:58 Modified: usr.bin/lsvfs lsvfs.c Log: Added missing #include, cleaned up #includes. Print VFCF_UNICODE flag in the unlikely event that it is set. Revision Changes Path 1.8 +11 -5 src/usr.bin/lsvfs/lsvfs.c From owner-cvs-usrbin Mon Mar 3 13:11:48 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA28006 for cvs-usrbin-outgoing; Mon, 3 Mar 1997 13:11:48 -0800 (PST) Received: from sovcom.kiae.su (sovcom.kiae.su [193.125.152.1]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id NAA27861; Mon, 3 Mar 1997 13:08:27 -0800 (PST) Received: by sovcom.kiae.su id AA05700 (5.65.kiae-1 ); Mon, 3 Mar 1997 23:43:22 +0300 Received: by sovcom.KIAE.su (UUMAIL/2.0); Mon, 3 Mar 97 23:43:22 +0300 Received: (from ache@localhost) by nagual.ru (8.8.5/8.8.5) id XAA02296; Mon, 3 Mar 1997 23:57:37 +0300 (MSK) Date: Mon, 3 Mar 1997 23:57:32 +0300 (MSK) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= To: Bruce Evans Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org Subject: Re: cvs commit: src/usr.bin/lsvfs lsvfs.c In-Reply-To: <199703031721.JAA14726@freefall.freebsd.org> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 3 Mar 1997, Bruce Evans wrote: > bde 97/03/03 09:21:58 > > Modified: usr.bin/lsvfs lsvfs.c > Log: > Added missing #include, cleaned up #includes. > > Print VFCF_UNICODE flag in the unlikely event that it is set. Is it indicates file system character set? I have big problem with MSDOSFS character set now which is different from the screen character set. Decode table exists, of course, but I don't know how to pass it in the kernel properly and which kernel routines will convert files names in/out. Could you suggest how it can be done without breaking current interface much? -- Andrey A. Chernov http://www.nagual.ru/~ache/ From owner-cvs-usrbin Tue Mar 4 02:24:27 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA13669 for cvs-usrbin-outgoing; Tue, 4 Mar 1997 02:24:27 -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 CAA13609; Tue, 4 Mar 1997 02:23:19 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id VAA04295; Tue, 4 Mar 1997 21:14:19 +1100 Date: Tue, 4 Mar 1997 21:14:19 +1100 From: Bruce Evans Message-Id: <199703041014.VAA04295@godzilla.zeta.org.au> To: ache@nagual.ru, bde@freefall.freebsd.org Subject: Re: cvs commit: src/usr.bin/lsvfs lsvfs.c Cc: cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> Print VFCF_UNICODE flag in the unlikely event that it is set. > >Is it indicates file system character set? One particular character set. >I have big problem with MSDOSFS character set now which is different >from the screen character set. Decode table exists, of course, but >I don't know how to pass it in the kernel properly and which kernel >routines will convert files names in/out. Could you suggest how it >can be done without breaking current interface much? There is no support for it now. VFCF_UNICODE seems to be part of Terry's kernel. For a simple translation (no expansion) you could just call an fs (and mount-flag) specific translation function after calling copyinstr() in a few places. Bruce From owner-cvs-usrbin Wed Mar 5 10:57:20 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA04882 for cvs-usrbin-outgoing; Wed, 5 Mar 1997 10:57:20 -0800 (PST) Received: (from fenner@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA04873; Wed, 5 Mar 1997 10:57:18 -0800 (PST) Date: Wed, 5 Mar 1997 10:57:18 -0800 (PST) From: Bill Fenner Message-Id: <199703051857.KAA04873@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/fetch fetch.1 ftp.c http.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk fenner 97/03/05 10:57:18 Modified: usr.bin/fetch fetch.1 ftp.c http.c Log: Fix FTP_PROXY to use user@host[@port] for FTP proxy and eliminate undocumented FTP_PROXY_USER Make FTP file errors contian hostname and path. Pass the FTP port to libftp. Partially un-HTMLify error messages returned from server Handle "HTTP NNN" instead of "HTTP/V.vv NNN" response sent by pre-HTTP/1.0 servers Reviewed by: wollman Revision Changes Path 1.17 +16 -12 src/usr.bin/fetch/fetch.1 1.4 +24 -24 src/usr.bin/fetch/ftp.c 1.5 +78 -34 src/usr.bin/fetch/http.c From owner-cvs-usrbin Wed Mar 5 21:12:00 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA12215 for cvs-usrbin-outgoing; Wed, 5 Mar 1997 21:12:00 -0800 (PST) Received: (from jmg@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA12208; Wed, 5 Mar 1997 21:11:58 -0800 (PST) Date: Wed, 5 Mar 1997 21:11:58 -0800 (PST) From: John-Mark Gurney Message-Id: <199703060511.VAA12208@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/locate/locate locate.1 Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jmg 97/03/05 21:11:57 Modified: usr.bin/locate/locate locate.1 Log: fix a couple misspellings, one of 'em closes pr 2892. Revision Changes Path 1.8 +3 -3 src/usr.bin/locate/locate/locate.1 From owner-cvs-usrbin Wed Mar 5 21:22:26 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA13114 for cvs-usrbin-outgoing; Wed, 5 Mar 1997 21:22:26 -0800 (PST) Received: (from mpp@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA13107; Wed, 5 Mar 1997 21:22:25 -0800 (PST) Date: Wed, 5 Mar 1997 21:22:25 -0800 (PST) From: Mike Pritchard Message-Id: <199703060522.VAA13107@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/locate/locate locate.1 Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk mpp 97/03/05 21:22:25 Branch: usr.bin/locate/locate RELENG_2_2 Modified: usr.bin/locate/locate locate.1 Log: YAMFC: fix a couple of typos. Revision Changes Path 1.5.2.1 +3 -3 src/usr.bin/locate/locate/locate.1 From owner-cvs-usrbin Wed Mar 5 23:21:44 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA28488 for cvs-usrbin-outgoing; Wed, 5 Mar 1997 23:21:44 -0800 (PST) Received: (from mpp@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA28481; Wed, 5 Mar 1997 23:21:42 -0800 (PST) Date: Wed, 5 Mar 1997 23:21:42 -0800 (PST) From: Mike Pritchard Message-Id: <199703060721.XAA28481@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/fetch fetch.1 main.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk mpp 97/03/05 23:21:42 Branch: usr.bin/fetch RELENG_2_2 Modified: usr.bin/fetch fetch.1 main.c Log: Fix couple of $ FreeBSD $ lines that made it into 2.2. I noticed these while looking for 2.2 -> 3.0 man page changes, so there may be more of these. Revision Changes Path 1.9.2.3 +1 -1 src/usr.bin/fetch/fetch.1 1.26.2.4 +1 -1 src/usr.bin/fetch/main.c From owner-cvs-usrbin Wed Mar 5 23:45:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA00674 for cvs-usrbin-outgoing; Wed, 5 Mar 1997 23:45:33 -0800 (PST) Received: (from mpp@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA00667; Wed, 5 Mar 1997 23:45:30 -0800 (PST) Date: Wed, 5 Mar 1997 23:45:30 -0800 (PST) From: Mike Pritchard Message-Id: <199703060745.XAA00667@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/checknr checknr.1 src/usr.bin/chpass chpass.1 src/usr.bin/colcrt colcrt.1 src/usr.bin/fmt fmt.1 src/usr.bin/gprof gprof.1 src/usr.bin/make make.1 src/usr.bin/mkfifo mkfifo.1 src/usr.bin/mkstr mkstr.1 src/usr.bin/msgs msgs.1 src/usr.bin/nice nice.1 src/usr.bin/nm nm.1 src/usr.bin/rdist rdist.1 src/usr.bin/rlogin rlogin.1 src/usr.bin/rsh rsh.1 src/usr.bin/rusers rusers.1 src/usr.bin/rwall rwall.1 src/usr.bin/shar shar.1 src/usr.bin/su su.1 src/usr.bin/tip/tip tip.1 src/usr.bin/true true.1 src/usr.bin/ul ul.1 src/usr.bin/uname uname.1 src/usr.bin/vgrind vgrindefs.5 src/usr.bin/w w.1 src/usr.bin/chat chat.8 src/usr.bin/tn3270/tn3270 tn3270.1 Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk mpp 97/03/05 23:45:30 Branch: usr.bin/chat RELENG_2_2 usr.bin/checknr RELENG_2_2 usr.bin/chpass RELENG_2_2 usr.bin/colcrt RELENG_2_2 usr.bin/fmt RELENG_2_2 usr.bin/gprof RELENG_2_2 usr.bin/make RELENG_2_2 usr.bin/mkfifo RELENG_2_2 usr.bin/mkstr RELENG_2_2 usr.bin/msgs RELENG_2_2 usr.bin/nice RELENG_2_2 usr.bin/nm RELENG_2_2 usr.bin/rdist RELENG_2_2 usr.bin/rlogin RELENG_2_2 usr.bin/rsh RELENG_2_2 usr.bin/rusers RELENG_2_2 usr.bin/rwall RELENG_2_2 usr.bin/shar RELENG_2_2 usr.bin/su RELENG_2_2 usr.bin/tip/tip RELENG_2_2 usr.bin/tn3270/tn3270 RELENG_2_2 usr.bin/true RELENG_2_2 usr.bin/ul RELENG_2_2 usr.bin/uname RELENG_2_2 usr.bin/vgrind RELENG_2_2 usr.bin/w RELENG_2_2 Modified: usr.bin/chat chat.8 usr.bin/checknr checknr.1 usr.bin/chpass chpass.1 usr.bin/colcrt colcrt.1 usr.bin/fmt fmt.1 usr.bin/gprof gprof.1 usr.bin/make make.1 usr.bin/mkfifo mkfifo.1 usr.bin/mkstr mkstr.1 usr.bin/msgs msgs.1 usr.bin/nice nice.1 usr.bin/nm nm.1 usr.bin/rdist rdist.1 usr.bin/rlogin rlogin.1 usr.bin/rsh rsh.1 usr.bin/rusers rusers.1 usr.bin/rwall rwall.1 usr.bin/shar shar.1 usr.bin/su su.1 usr.bin/tip/tip tip.1 usr.bin/tn3270/tn3270 tn3270.1 usr.bin/true true.1 usr.bin/ul ul.1 usr.bin/uname uname.1 usr.bin/vgrind vgrindefs.5 usr.bin/w w.1 Log: YAMFC: - typo fixes - sort xrefs - some other minor cleanup. Revision Changes Path 1.4.2.1 +3 -3 src/usr.bin/chat/chat.8 1.2.2.1 +2 -2 src/usr.bin/checknr/checknr.1 1.7.2.1 +1 -1 src/usr.bin/chpass/chpass.1 1.1.1.1.8.1 +2 -2 src/usr.bin/colcrt/colcrt.1 1.2.2.1 +2 -2 src/usr.bin/fmt/fmt.1 1.6.2.1 +3 -3 src/usr.bin/gprof/gprof.1 1.6.2.1 +2 -1 src/usr.bin/make/make.1 1.2.2.1 +1 -1 src/usr.bin/mkfifo/mkfifo.1 1.2.2.1 +2 -2 src/usr.bin/mkstr/mkstr.1 1.2.2.1 +3 -3 src/usr.bin/msgs/msgs.1 1.1.1.1.8.2 +2 -2 src/usr.bin/nice/nice.1 1.4.2.1 +2 -2 src/usr.bin/nm/nm.1 1.3.2.1 +1 -1 src/usr.bin/rdist/rdist.1 1.3.2.1 +3 -3 src/usr.bin/rlogin/rlogin.1 1.3.2.1 +3 -3 src/usr.bin/rsh/rsh.1 1.2.2.1 +2 -2 src/usr.bin/rusers/rusers.1 1.1.1.1.8.1 +2 -2 src/usr.bin/rwall/rwall.1 1.1.1.1.8.1 +2 -2 src/usr.bin/shar/shar.1 1.3.2.1 +4 -4 src/usr.bin/su/su.1 1.2.2.1 +2 -2 src/usr.bin/tip/tip/tip.1 1.1.1.1.8.1 +1 -1 src/usr.bin/tn3270/tn3270/tn3270.1 1.1.1.1.8.1 +2 -2 src/usr.bin/true/true.1 1.2.2.1 +2 -2 src/usr.bin/ul/ul.1 1.2.2.1 +2 -2 src/usr.bin/uname/uname.1 1.2.2.1 +2 -2 src/usr.bin/vgrind/vgrindefs.5 1.2.8.2 +3 -3 src/usr.bin/w/w.1 From owner-cvs-usrbin Thu Mar 6 02:02:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA09379 for cvs-usrbin-outgoing; Thu, 6 Mar 1997 02:02:09 -0800 (PST) Received: (from jmg@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA09368; Thu, 6 Mar 1997 02:02:03 -0800 (PST) Date: Thu, 6 Mar 1997 02:02:03 -0800 (PST) From: John-Mark Gurney Message-Id: <199703061002.CAA09368@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/fetch ftp.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jmg 97/03/06 02:02:00 Modified: usr.bin/fetch ftp.c Log: fix a couple problems with fetch: . don't try to interpet a colon in the pathname as a port number . don't report an errno message when one don't exist Revision Changes Path 1.5 +6 -3 src/usr.bin/fetch/ftp.c From owner-cvs-usrbin Thu Mar 6 12:01:45 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA08107 for cvs-usrbin-outgoing; Thu, 6 Mar 1997 12:01:45 -0800 (PST) Received: (from jmg@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA08077; Thu, 6 Mar 1997 12:01:38 -0800 (PST) Date: Thu, 6 Mar 1997 12:01:38 -0800 (PST) From: John-Mark Gurney Message-Id: <199703062001.MAA08077@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/fetch http.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jmg 97/03/06 12:01:37 Modified: usr.bin/fetch http.c Log: fix restarting http transfers and understanding response from server. Slight modification of patch by wollman. Closes PR#2870 Reviewed by: wollman Submitted by: Marc Slemko Revision Changes Path 1.6 +4 -4 src/usr.bin/fetch/http.c From owner-cvs-usrbin Fri Mar 7 01:01:32 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA28064 for cvs-usrbin-outgoing; Fri, 7 Mar 1997 01:01:32 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA28055; Fri, 7 Mar 1997 01:01:29 -0800 (PST) Date: Fri, 7 Mar 1997 01:01:29 -0800 (PST) From: Joerg Wunsch Message-Id: <199703070901.BAA28055@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/su su.1 su.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 97/03/07 01:01:27 Branch: usr.bin/su RELENG_2_2 Modified: usr.bin/su su.1 su.c Log: YAMFC (rev 1.8, and 1.18 resp: empty group wheel semantics) Revision Changes Path 1.3.2.2 +4 -3 src/usr.bin/su/su.1 1.14.2.1 +3 -2 src/usr.bin/su/su.c From owner-cvs-usrbin Fri Mar 7 01:04:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA28207 for cvs-usrbin-outgoing; Fri, 7 Mar 1997 01:04:07 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA28200; Fri, 7 Mar 1997 01:04:05 -0800 (PST) Date: Fri, 7 Mar 1997 01:04:05 -0800 (PST) From: Joerg Wunsch Message-Id: <199703070904.BAA28200@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/more command.c more.1 Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 97/03/07 01:04:04 Branch: usr.bin/more RELENG_2_2 Modified: usr.bin/more command.c more.1 Log: YAMFC (rev 1.7, and 1.4 resp: don't exit immediately on short file if -e is given, so alternate screen buffers can be used at all) Revision Changes Path 1.6.2.1 +1 -1 src/usr.bin/more/command.c 1.3.2.1 +0 -3 src/usr.bin/more/more.1 From owner-cvs-usrbin Fri Mar 7 02:54:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA03037 for cvs-usrbin-outgoing; Fri, 7 Mar 1997 02:54:22 -0800 (PST) Received: (from yokota@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA03030; Fri, 7 Mar 1997 02:54:21 -0800 (PST) Date: Fri, 7 Mar 1997 02:54:21 -0800 (PST) From: Kazutaka YOKOTA Message-Id: <199703071054.CAA03030@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/w pr_time.c w.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk yokota 97/03/07 02:54:20 Modified: usr.bin/w pr_time.c w.c Log: Made sure the string formated by strftime() is properly null-terminated. Should go to RELENG_2_1 and RELENG_2_2. Reviewed by guido@freebsd.org. Revision Changes Path 1.8 +2 -1 src/usr.bin/w/pr_time.c 1.19 +2 -1 src/usr.bin/w/w.c From owner-cvs-usrbin Fri Mar 7 03:04:11 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA03422 for cvs-usrbin-outgoing; Fri, 7 Mar 1997 03:04:11 -0800 (PST) Received: (from yokota@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA03415; Fri, 7 Mar 1997 03:04:08 -0800 (PST) Date: Fri, 7 Mar 1997 03:04:08 -0800 (PST) From: Kazutaka YOKOTA Message-Id: <199703071104.DAA03415@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/who who.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk yokota 97/03/07 03:04:06 Modified: usr.bin/who who.c Log: Made sure the string formated by strftime() is properly null-terminated. Fixed a wrong if statement which should test a string is empty where in fact it tested the string pointer was NULL. Should go to RELENG_2_1 and RELENG_2_2. Reviewed by guido@freebsd.org. Revision Changes Path 1.4 +2 -1 src/usr.bin/who/who.c From owner-cvs-usrbin Fri Mar 7 04:34:55 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA08332 for cvs-usrbin-outgoing; Fri, 7 Mar 1997 04:34:55 -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 EAA08312; Fri, 7 Mar 1997 04:34:20 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id XAA14372; Fri, 7 Mar 1997 23:29:13 +1100 Date: Fri, 7 Mar 1997 23:29:13 +1100 From: Bruce Evans Message-Id: <199703071229.XAA14372@godzilla.zeta.org.au> To: cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org, yokota@freefall.freebsd.org Subject: Re: cvs commit: src/usr.bin/w pr_time.c w.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Modified: usr.bin/w pr_time.c w.c > Log: > Made sure the string formated by strftime() is properly > null-terminated. Strings are null-terminated by definition. According to the ANSI C standard, strftime() gives either a string (if there is enough space) or indeterminate buffer contents (otherwise) according to the ANSI C standard. The FreeBSD behaviour of truncating the string should not be documented or depended on. This means that the result of strftime() should always be checked. A fixed-size buffer may be too small because the locale has long time-related strings. Bruce From owner-cvs-usrbin Fri Mar 7 06:56:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA18464 for cvs-usrbin-outgoing; Fri, 7 Mar 1997 06:56:42 -0800 (PST) Received: from nasu.utsunomiya-u.ac.jp (nasu.utsunomiya-u.ac.jp [160.12.128.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA17382; Fri, 7 Mar 1997 06:50:14 -0800 (PST) Received: from outmail.utsunomiya-u.ac.jp (outmail.utsunomiya-u.ac.jp [160.12.196.3]) by nasu.utsunomiya-u.ac.jp (8.8.4+2.7Wbeta4/3.5Wpl3) with ESMTP id XAA18795; Fri, 7 Mar 1997 23:49:16 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (PkltuIHrM24AYz1OICkvLMPckdYkrgce@zodiac.mech.utsunomiya-u.ac.jp [160.12.33.1]) by outmail.utsunomiya-u.ac.jp (8.8.4+2.7Wbeta4/3.5Wpl3) with ESMTP id XAA25607; Fri, 7 Mar 1997 23:49:16 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (zenith.mech.utsunomiya-u.ac.jp [160.12.33.60]) by zodiac.mech.utsunomiya-u.ac.jp (8.7.6+2.6Wbeta7/3.4W/zodiac-May96) with ESMTP id XAA06358; Fri, 7 Mar 1997 23:53:25 +0900 (JST) Message-Id: <199703071453.XAA06358@zodiac.mech.utsunomiya-u.ac.jp> To: Bruce Evans cc: cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org, yokota@freefall.freebsd.org Subject: Re: cvs commit: src/usr.bin/w pr_time.c w.c In-reply-to: Your message of "Fri, 07 Mar 1997 23:29:13 +1100." <199703071229.XAA14372@godzilla.zeta.org.au> References: <199703071229.XAA14372@godzilla.zeta.org.au> Date: Fri, 07 Mar 1997 23:53:24 +0900 From: Kazutaka YOKOTA Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> Modified: usr.bin/w pr_time.c w.c >> Log: >> Made sure the string formated by strftime() is properly >> null-terminated. > >Strings are null-terminated by definition. According to the ANSI C >standard, strftime() gives either a string (if there is enough space) >or indeterminate buffer contents (otherwise) according to the ANSI C >standard. The FreeBSD behaviour of truncating the string should not >be documented or depended on. This means that the result of strftime() >should always be checked. A fixed-size buffer may be too small because >the locale has long time-related strings. > >Bruce Maybe I should have said "Put 0 at the end of the buffer used by strftime() so that the buffer is null-terminated even when strftime() doesn't place 0 there." What I did was something like this in a couple of places. --- pr_time.c-dist Tue Feb 11 19:49:24 1997 +++ pr_time.c Sun Feb 23 11:55:20 1997 @@ -76,7 +76,8 @@ (void)strcpy(fmt, __CONCAT("%l:%", "M%p")); } - (void)strftime(buf, sizeof(buf), fmt, tp); + (void)strftime(buf, sizeof(buf) - 1, fmt, tp); + buf[sizeof(buf) - 1] = '\0'; (void)printf("%s", buf); } As far as I can understand from src/lib/libc/stdtime/strftime.c, the FreeBSD version of strftime() does not truncate the string when there is not enough space in the buffer, rather it stuffs as many characters into the buffer as possible and returns without a terminal zero. Thus, it follows the ANSI C standard, does it not? I am bit confused. Should I back out the patch? Kazu From owner-cvs-usrbin Fri Mar 7 08:55:48 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA27580 for cvs-usrbin-outgoing; Fri, 7 Mar 1997 08:55:48 -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 IAA27572; Fri, 7 Mar 1997 08:55:40 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id DAA22618; Sat, 8 Mar 1997 03:53:13 +1100 Date: Sat, 8 Mar 1997 03:53:13 +1100 From: Bruce Evans Message-Id: <199703071653.DAA22618@godzilla.zeta.org.au> To: bde@zeta.org.au, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: cvs commit: src/usr.bin/w pr_time.c w.c Cc: cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org, yokota@freefall.freebsd.org Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >>Strings are null-terminated by definition. According to the ANSI C >>standard, strftime() gives either a string (if there is enough space) >>or indeterminate buffer contents (otherwise) according to the ANSI C >>standard... >Maybe I should have said "Put 0 at the end of the buffer used by >strftime() so that the buffer is null-terminated even when strftime() >doesn't place 0 there." This depends on the buffer having something useful in it. If we're going to depend on unportable behaviour, then we might as well change the library to force null termination (except in the silly case where the buffer size is 0). That's probably what strftime() should have been specified to do. >What I did was something like this in a couple of places. > >--- pr_time.c-dist Tue Feb 11 19:49:24 1997 >+++ pr_time.c Sun Feb 23 11:55:20 1997 >@@ -76,7 +76,8 @@ > (void)strcpy(fmt, __CONCAT("%l:%", "M%p")); > } > >- (void)strftime(buf, sizeof(buf), fmt, tp); >+ (void)strftime(buf, sizeof(buf) - 1, fmt, tp); >+ buf[sizeof(buf) - 1] = '\0'; > (void)printf("%s", buf); > } I think it should do something like this: if (strftime(...) == 0) (void)strftime(buf, sizeof(buf), some_fixed_width_format, tp); The format is "%d%b%y", "%a%I%p" or "%l%M%p". According to the FreeBSD docs, these have widths 2+3+2, 3+2+unspecified and 2+2+unspecified, respectively. The ISO C docs don't seem to specify the widths of %b or %A, so the widths of all the formats are unspecified :-(. Otherwise "%d%b%y" would be a good fixed size format. I would try %d\?\?\?%y". The buffer size is 256 so the first strftime() will never fail in practice :-). However, we really want a width of 7, so using a buffer size of 8 would be good for finding errors early. >As far as I can understand from src/lib/libc/stdtime/strftime.c, the >FreeBSD version of strftime() does not truncate the string when there >is not enough space in the buffer, rather it stuffs as many characters >into the buffer as possible and returns without a terminal zero. Thus, >it follows the ANSI C standard, does it not? It does more than the standard requires. >I am bit confused. Should I back out the patch? Well, it wasn't urgent. It wasn't even necessary in the CSRG version since only the C locale was supported so the string width was guaranteed to be 7. The programmer must have been lazy to use a buffer size of 256 :-). Now the main bug is that the string width is not guaranteed to be 7. Worse, the width may vary with the login time, so the columns may be messed up. Bruce From owner-cvs-usrbin Sat Mar 8 03:40:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA07369 for cvs-usrbin-outgoing; Sat, 8 Mar 1997 03:40:22 -0800 (PST) Received: (from ache@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA07361; Sat, 8 Mar 1997 03:40:19 -0800 (PST) Date: Sat, 8 Mar 1997 03:40:19 -0800 (PST) From: "Andrey A. Chernov" Message-Id: <199703081140.DAA07361@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/jot jot.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 97/03/08 03:40:18 Modified: usr.bin/jot jot.c Log: Add ^ getpid() to make more random results for subsequent calling. Add proper type casting to random calls Should go into 2.2 Revision Changes Path 1.3 +6 -5 src/usr.bin/jot/jot.c From owner-cvs-usrbin Sat Mar 8 22:08:32 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA28995 for cvs-usrbin-outgoing; Sat, 8 Mar 1997 22:08:32 -0800 (PST) Received: (from bde@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA28976; Sat, 8 Mar 1997 22:08:28 -0800 (PST) Date: Sat, 8 Mar 1997 22:08:28 -0800 (PST) From: Bruce Evans Message-Id: <199703090608.WAA28976@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/ee Makefile Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 97/03/08 22:08:26 Modified: usr.bin/ee Makefile Log: Don't use a dot in a chown command. In fact, don't use any commands except `install' at install time. Don't build things at install time. Don't hide the build steps using @. Install with mode ${NOBINMODE} instead of 444. Poor source layout made this harder than it should have been. E.g., a suffix rule can't be used because of the subdirectories, and a new makefile per subdirectory (i.e.m per data file) would be excessive. See /usr/src/usr.bin/mklocale for a better organisation. Revision Changes Path 1.8 +13 -9 src/usr.bin/ee/Makefile