What was I thinking? I missed that litle minus sign and the possibility that the errno might be some positive non-zero value. This reverts commit 43880878e4f2d317d4ddb589061d9bfb6d71fbca.