Comment 5 for bug 747032

It would also be better to have error information with errno.
Something like http://sprunge.us/QjPA?c