Use right errno comparison.