need to reset errno before calling readdir
This commit is contained in:
parent
704226510f
commit
9778ec7a19
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue