Commit 0fa3281f authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Don't export empty direntries to kernel.

parent 589c2b9e
...@@ -98,6 +98,10 @@ func (d *connectorDir) ReadDir(list *DirEntryList, input *raw.ReadIn) (code Stat ...@@ -98,6 +98,10 @@ func (d *connectorDir) ReadDir(list *DirEntryList, input *raw.ReadIn) (code Stat
todo := d.stream[input.Offset:] todo := d.stream[input.Offset:]
for _, e := range todo { for _, e := range todo {
if e.Name == "" {
log.Printf("got emtpy directory entry, mode %o.", e.Mode)
continue
}
if !list.AddDirEntry(e) { if !list.AddDirEntry(e) {
break 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