fix bogus termination of directory reading
This commit is contained in:
parent
868ed16635
commit
54d8d40891
1 changed files with 2 additions and 3 deletions
|
|
@ -278,9 +278,8 @@ readdir_func(const char *path, fuse_dirh_t buf, fuse_dirfil_t df)
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((w = PyIter_Next(iter))) {
|
while ((w = PyIter_Next(iter))) {
|
||||||
ret = dir_add_entry(w, buf, df);
|
if (dir_add_entry(w, buf, df))
|
||||||
if(ret != 0)
|
break;
|
||||||
goto OUT_DECREF;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Py_DECREF(iter);
|
Py_DECREF(iter);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue