Correct fix for open readonly with truncate.