Rewrite not to look at `errno' if library call succeeds, since `errno' is