Eric Andersen e0cbe48637 Chris Larson (kergoth) writes:
I was adding -s/--symbolic-link support to busybox cp when I noticed a
bug with -r/-a.  Test case:

mkdir -p test/out
cd test
busybox cp -a * out/

Will never return until we run out of open files or similar.
Coreutils cp on the other hand will error with "cannot copy a directory,
`out', into itself, `out'".  Patch attached.
2004-02-19 00:44:08 +00:00
..
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-05-26 14:07:50 +00:00
2004-02-19 00:44:08 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2004-01-30 22:52:27 +00:00
2003-03-19 09:13:01 +00:00
2003-08-06 08:22:10 +00:00
2004-02-05 13:49:29 +00:00
2003-08-22 23:08:37 +00:00
2003-08-29 11:34:08 +00:00
2003-05-26 14:07:50 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2004-01-30 21:44:20 +00:00
2002-12-14 01:58:59 +00:00
2003-05-26 14:07:50 +00:00
2003-07-03 10:07:04 +00:00
2003-05-26 14:07:50 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-07-22 08:56:55 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-05-26 14:07:50 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00

Please see the LICENSE file for copyright information (GPLv2)
    
libbb is BusyBox's utility library.  All of this stuff used to be stuffed into
a single file named utility.c.  When I split utility.c to create libbb, some of
the very oldest stuff ended up without their original copyright and licensing
information (which is now lost in the mists of time).  If you see something
that you wrote that is mis-attributed, do let me know so we can fix that up.

	Erik Andersen 
	<andersen@codepoet.org>