need to reset errno before calling readdir

This commit is contained in:
David Rose 2004-06-07 18:51:59 +00:00
parent 704226510f
commit 9778ec7a19

View File

@ -1251,6 +1251,7 @@ scan_directory(vector_string &contents) const {
return false;
}
errno = 0;
struct dirent *d;
d = readdir(root);
while (d != (struct dirent *)NULL) {