Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2001 11:47:44 +0200
From:      Nicolas Rachinsky <list@rachinsky.de>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: cp -i -R
Message-ID:  <20011010114744.B41891@pc5.abc>
In-Reply-To: <20011010113434.A41891@pc5.abc>
References:  <20011009161204.A22196@pc5.abc> <3.0.5.32.20011009095525.031a30f0@mail.sage-american.com> <20011009172052.A37340@pc5.abc> <t8het8fi2w.et8@localhost.localdomain> <20011010113434.A41891@pc5.abc>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 10, 2001 at 11:34:34AM +0200, Nicolas Rachinsky <list@rachinsky.de> wrote:
> On Tue, Oct 09, 2001 at 05:35:03PM -0700, "Gary W. Swearingen" <swear@blarg.net> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011010114744.B41891>