From owner-freebsd-hackers Mon Jul 29 4:30:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C44137B400; Mon, 29 Jul 2002 04:30:30 -0700 (PDT) Received: from chiark.greenend.org.uk (chiark.greenend.org.uk [212.135.138.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD84943E4A; Mon, 29 Jul 2002 04:30:26 -0700 (PDT) (envelope-from fanf@chiark.greenend.org.uk) Received: from fanf by chiark.greenend.org.uk with local (Exim 3.12 #1) id 17Z8jF-0003SZ-00 (Debian); Mon, 29 Jul 2002 12:30:21 +0100 Date: Mon, 29 Jul 2002 12:30:21 +0100 From: Tony Finch To: cyrille.lefevre+dated+1028178747.705301@laposte.net, dot@dotat.at, freebsd-hackers@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG Subject: Re: sed -i has difficulty with read-only files Message-ID: <20020729123021.A6864@chiark.greenend.org.uk> References: <20020726165021.C7551@chiark.greenend.org.uk> <20020727051224.GA7996@gits.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020727051224.GA7996@gits.dyndns.org>; from cyrille.lefevre+dated+1028178747.705301@laposte.net on Sat, Jul 27, 2002 at 07:12:24AM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jul 27, 2002 at 07:12:24AM +0200, Cyrille Lefevre wrote: > > IMHO, both the old and the newer code are wrong. they should use > getenv("TMPDIR") if any and certainly not the current directory. > there is probably more room in ${TMPDIR:-/var/tmp} then in the > current directory. imagine that the current fs is nearly full... I'm disinclined to use a file in $TMPDIR or in /tmp because of the bad effect it has on the complexity of the code, and I think that if you are running out of disk space then you deserve to lose. Though I'm open to other opinions. Tony. -- f.a.n.finch http://dotat.at/ FAIR ISLE: EAST 4, BACKING NORTHEAST 5 OR 6 OCCASIONALLY 7. RAIN. GOOD BECOMING MODERATE OCCASIONALLY POOR. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message