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