Making DO_POSIX_CP configurable
Denys Vlasenko
vda.linux at googlemail.com
Wed Sep 12 11:42:23 UTC 2007
On Tuesday 11 September 2007 23:13, Alexander Kriegisch wrote:
> I am sending this answer to the list again, because it was my initial
> mistake that I sent the first copy of my last message to your address
> instead of to the list.
>
> Sorry, Denys, I was never talking about the scenario you are mentioning,
> really just about overwriting an existing character device by a regular
> file, so it gets its contents. No more, no less. And I still insist that
> it is fair to expect that this will work. I am not talking about copying
> a device onto something else and not about copying recursively either.
> Only this:
>
> cp /regular/file /character/device
>
> Without unlinking the device before copying the source file into it. It
> is so straightforward it almost hurts. ;-) Why on earth should this not
> work by default (without tweaking the source code)?
It works now. I fixed it after your first complaint.
--
vda
More information about the busybox
mailing list