From owner-freebsd-stable Wed Oct 10 2:50:24 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mailout02.sul.t-online.de (mailout02.sul.t-online.com [194.25.134.17]) by hub.freebsd.org (Postfix) with ESMTP id 8DD1637B405 for ; Wed, 10 Oct 2001 02:50:20 -0700 (PDT) Received: from fwd06.sul.t-online.de by mailout02.sul.t-online.de with smtp id 15rG0J-0004oy-02; Wed, 10 Oct 2001 11:50:19 +0200 Received: from pc5.abc (520067998749-0001@[217.80.36.182]) by fmrl06.sul.t-online.com with esmtp id 15rFzz-1bUxBgC; Wed, 10 Oct 2001 11:49:59 +0200 Received: (from nicolas@localhost) by pc5.abc (8.11.3/8.11.3) id f9A9lih42138 for freebsd-stable@FreeBSD.ORG; Wed, 10 Oct 2001 11:47:44 +0200 (CEST) (envelope-from list@rachinsky.de) X-Authentication-Warning: pc5.abc: nicolas set sender to list@rachinsky.de using -f Date: Wed, 10 Oct 2001 11:47:44 +0200 From: Nicolas Rachinsky To: freebsd-stable@FreeBSD.ORG Subject: Re: cp -i -R Message-ID: <20011010114744.B41891@pc5.abc> Mail-Followup-To: freebsd-stable@FreeBSD.ORG References: <20011009161204.A22196@pc5.abc> <3.0.5.32.20011009095525.031a30f0@mail.sage-american.com> <20011009172052.A37340@pc5.abc> <20011010113434.A41891@pc5.abc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011010113434.A41891@pc5.abc> User-Agent: Mutt/1.3.22.1i X-Sender: 520067998749-0001@t-dialin.net Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Oct 10, 2001 at 11:34:34AM +0200, Nicolas Rachinsky wrote: > On Tue, Oct 09, 2001 at 05:35:03PM -0700, "Gary W. Swearingen" wrote: > > Then do "cp -i /kernel target" and instead of asking if you want > > to clobber "target/kernel", it creates "target/nonexistent"! > > I can reproduce this. > Even "cp /kernel target" and "cp -f /kernel target" show the same > behaviour. Sorry for replying to my own mail. Doing a second search if there's an PR I found one, I missed the first time I looked for it. http://www.freebsd.org/cgi/query-pr.cgi?pr=25015 The audit trail says it's unclear wether the behaviour is correct or not in the case of the "broken symlink target". But I think the overwriting of an file without asking (with -i) when the source is a symlink,fifo,... is not correct. Nicolas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message