Set errno to 0 before doing disk I/O to prevent confusing error