Chris Larson (kergoth) writes:
authorEric Andersen <andersen@codepoet.org>
Thu, 19 Feb 2004 00:44:08 +0000 (00:44 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 19 Feb 2004 00:44:08 +0000 (00:44 -0000)
commite0cbe4863704c78ea703c06c0dd2d76ebac90f75
treebbdb6a67c5ef096f90bdf6fc91821f94d0f3e50a
parent03a0643fbc5ae3e1ab2e7e29bb64617a4b94a5c9
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.
libbb/copy_file.c