-
Michal 'vorner' Vaner authored
Previously, something else than the readdir could set errno (possibly something in lua), making the whole function fail. Make sure the errno is reset before each call to readdir, therefore if there's an error, it must come from that.