+2005-08-19 Miklos Szeredi <miklos@szeredi.hu>
+
+ * lib: always refresh directory contents after rewinddir() to
+ conform to SUS. Bug found by John Muir.
+
2005-08-15 Miklos Szeredi <miklos@szeredi.hu>
* Released 2.4.0-pre1
struct fuse_dirhandle *dh = get_dirhandle(llfi, &fi);
pthread_mutex_lock(&dh->lock);
+ /* According to SUS, directory contents need to be refreshed on
+ rewinddir() */
+ if (!off)
+ dh->filled = 0;
+
if (!dh->filled) {
int err = readdir_fill(f, ino, size, off, dh, &fi);
if (err) {