Commit 9c4ededa authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse: fix offset of readdirplus lookup entries

parent 7c254a14
......@@ -76,7 +76,7 @@ func (d *connectorDir) ReadDirPlus(list *fuse.DirEntryList, input *raw.ReadIn, c
log.Printf("got empty directory entry, mode %o.", e.Mode)
continue
}
if !list.AddDirLookupEntry(e, &d.lookups[i]) {
if !list.AddDirLookupEntry(e, &d.lookups[input.Offset+uint64(i)]) {
break
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment