unix_apply.c: fix overwriting existing readonly files