Show More
@@ -331,6 +331,9 b' static PyObject *_listdir(char *path, in' | |||
|
331 | 331 | err = lstat(fullpath, &st); |
|
332 | 332 | #endif |
|
333 | 333 | if (err == -1) { |
|
334 | /* race with file deletion? */ | |
|
335 | if (errno == ENOENT) | |
|
336 | continue; | |
|
334 | 337 | strncpy(fullpath + pathlen + 1, ent->d_name, |
|
335 | 338 | PATH_MAX - pathlen); |
|
336 | 339 | fullpath[PATH_MAX] = 0; |
General Comments 0
You need to be logged in to leave comments.
Login now