[BusyBox] tar won't overwrite existing files

Rob Landley rob at landley.net
Tue Nov 18 22:28:46 UTC 2003


On Tuesday 18 November 2003 14:40, Glenn McGrath wrote:

> --overwrite achieves the same end result as --unlink so i dont think we
> need that.

Well, theoretically if you had a tar that extracted to the same names as 
existing named pipes or devices or such.  But that's fairly evil.

A more likely usage is to preserve hardlinks.  I.E. if you had a tar of a new 
busybox, and all the other commands were hardlinked to it, you'd want to 
overwrite the executable.  (Of course in that instance, symlinks would be 
better anyway...)

I agree this is probably the kind of function we can happily avoid 
implementing. :)

Rob



More information about the busybox mailing list