Commit 92507a54 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse/pathfs: Add workaround for issue 5960.

parent 5edbae8e
......@@ -69,6 +69,10 @@ func (fs *loopbackFileSystem) OpenDir(name string, context *fuse.Context) (strea
for {
infos, err := f.Readdir(want)
for i := range infos {
// workaround forhttps://code.google.com/p/go/issues/detail?id=5960
if infos[i] == nil {
continue
}
n := infos[i].Name()
d := fuse.DirEntry{
Name: n,
......
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