Commit 3b479a8f authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

UnionFs: use ,ok style for reading directories.

parent 794d8cbe
...@@ -599,8 +599,8 @@ func (me *UnionFs) OpenDir(directory string) (stream chan fuse.DirEntry, status ...@@ -599,8 +599,8 @@ func (me *UnionFs) OpenDir(directory string) (stream chan fuse.DirEntry, status
ch, s := pfs.OpenDir(directory) ch, s := pfs.OpenDir(directory)
statuses[j] = s statuses[j] = s
for s.Ok() { for s.Ok() {
v := <-ch v, ok := <-ch
if v.Name == "" { if !ok {
break break
} }
entries[j][v.Name] = v.Mode entries[j][v.Name] = v.Mode
......
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