[BusyBox] new cp and mv

Matt Kraai kraai at alumni.carnegiemellon.edu
Mon Apr 23 16:17:59 UTC 2001


On Tue, Apr 24, 2001 at 02:09:35AM +1000, Glenn McGrath wrote:
> Matt Kraai wrote:
> > Attached is a patch which contains my rewrite of cp and mv.  They
> > are, unfortunately, 25% larger.  If anyone has ideas on how to
> > shrink them further, I'd love to hear them.  If people could test
> > this out and let me know what they think is broken, I'd appreciate
> > that as well.
> 
> I notice in mv.c you have functions remove_file() and rmeove_dir(),
> there is also a remove_dir() in dpkg.c
> 
> Maybe a rewrite of rm.c is in order, it could have a function that could
> produce functionality required by all three applets.

Hmm.  I was thinking of merging the removal code from mv and rm,
and this gives me yet another excuse.  I'd like to get this patch
approved first however.

Matt





More information about the busybox mailing list