[BusyBox] Bug in cp

Alfred Zastow az1 at zastrow4u.de
Tue Jan 20 18:17:16 UTC 2004


Hi list,

I observed a strange behaviour in busybox-1.0pre5.
`cp` doesn't overwrite files as in pre3 and as the original cp.

For testing please create two files:

echo "1234" >file1

file1 is now 5 bytes in size


echo "21" >file2

file2 is now 3 bytes in size


cp file2 file1

The resulting file1  is 5 bytes in size, only the first bytes were 
overwritten.



best regards
Alfred




More information about the busybox mailing list