Copying and removing some files (about 2 Mo) in the same destination directory two times corrupt the file system
|Reported by:||oco||Owned by:||axeld|
|Has a Patch:||no||Platform:||All|
This is a simplified scenario to reproduce the problem that prevent me from building the full freepascal source tree under Haiku.
I am able to reproduce the problem with a simple shell script and some files (see attached files).
Steps to reproduce :
- unzip the attached files in a directory
- go into this directory under Haiku
- launch ./test.sh in a terminal
Under Haiku, the second call to rm can't remove the last file in the dest directory and print a "general system error" message.
Here is a copy of the script :
mkdir dest cp source/*.* dest rm dest/*.* cp source/*.* dest rm dest/*.*