Browse Source

when readdir's filler returns non-zero return ENOMEM. closes #7

pull/36/head
Antonio SJ Musumeci 11 years ago
parent
commit
36887e456f
  1. 3
      src/readdir.cpp

3
src/readdir.cpp

@ -73,7 +73,8 @@ _readdir(const vector<string> &srcmounts,
if(found.insert(d_name).second == false) if(found.insert(d_name).second == false)
continue; continue;
filler(buf,de->d_name,NULL,NO_OFFSET);
if(filler(buf,de->d_name,NULL,NO_OFFSET) != 0)
return -ENOMEM;
} }
::closedir(dh); ::closedir(dh);

Loading…
Cancel
Save