Description
If a file is opened for writing then type will fail to open the file with an ERROR_SHARING_VIOLATION error.
To recreate:
From the bootloader menu, boot "Reactos (Log file)"
run cmd.exe
cd \reactos
type debug.log
You will get the following output:
debug.log - ERROR_SHARING_VIOLATION - The process cannot access the file because it is being used by another process.
The attached patch fixes the issue.