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 43880878.