From 70e6306aafedc8c25f9eac90df846d3f327bd4f8 Mon Sep 17 00:00:00 2001 From: Dustin Sallings Date: Fri, 17 Jan 2014 18:15:13 -0800 Subject: [PATCH] fs: fix crash setting xattr on a root Change-Id: I76f008bcffcf23c5936a0a16cabb9c5b7c9bbd99 --- pkg/fs/roots.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/fs/roots.go b/pkg/fs/roots.go index 11721865f..b87e6c287 100644 --- a/pkg/fs/roots.go +++ b/pkg/fs/roots.go @@ -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