Fix handling of errno and return value
1 file changed