posix: readdir() is meant to leave errno unchanged when returning EOD, not set it to zero.