fs: fix crash setting xattr on a root

Change-Id: I76f008bcffcf23c5936a0a16cabb9c5b7c9bbd99
This commit is contained in:
Dustin Sallings 2014-01-17 18:15:13 -08:00
parent 7f4ef04b4b
commit 70e6306aaf
1 changed files with 1 additions and 0 deletions

View File

@ -196,6 +196,7 @@ func (n *rootsDir) Lookup(name string, intr fuse.Intr) (fuse.Node, fuse.Error) {
fs: n.fs,
permanode: br,
name: name,
xattrs: map[string][]byte{},
}
}
n.children[name] = nod