Show More
@@ -215,7 +215,9 static PyObject *listdir(PyObject *self, | |||
|
215 | 215 | dfd = dirfd(dir); |
|
216 | 216 | #endif |
|
217 | 217 | |
|
218 |
if (do_stat || !all_kinds) |
|
|
218 | if (!(do_stat || !all_kinds)) | |
|
219 | goto done; | |
|
220 | ||
|
219 | 221 |
|
|
220 | 222 |
|
|
221 | 223 |
|
@@ -228,8 +230,7 static PyObject *listdir(PyObject *self, | |||
|
228 | 230 |
|
|
229 | 231 |
|
|
230 | 232 | |
|
231 |
|
|
|
232 | PATH_MAX - path_len); | |
|
233 | strncat(full_path + path_len + 1, name, PATH_MAX - path_len); | |
|
233 | 234 |
|
|
234 | 235 | |
|
235 | 236 |
|
@@ -292,7 +293,6 static PyObject *listdir(PyObject *self, | |||
|
292 | 293 |
|
|
293 | 294 |
|
|
294 | 295 |
|
|
295 | } | |
|
296 | 296 | |
|
297 | 297 | goto done; |
|
298 | 298 |
General Comments 0
You need to be logged in to leave comments.
Login now