From 7e11b360a31fad543960bc8a330bb2f1aad7bb56 Mon Sep 17 00:00:00 2001 From: Eric Drechsel Date: Thu, 8 May 2014 15:16:45 -0700 Subject: [PATCH] fuse: fix crash populating non-permanode camliPath https://code.google.com/p/camlistore/issues/detail?id=440 Change-Id: If3b186d03a29ea6b3c9f0945173ede8709e318d6 --- pkg/fs/mut.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/fs/mut.go b/pkg/fs/mut.go index 5bdb9bf34..c584a6e08 100644 --- a/pkg/fs/mut.go +++ b/pkg/fs/mut.go @@ -153,6 +153,10 @@ func (n *mutDir) populate() error { log.Printf("child not described: %v", childRef) continue } + if child.Permanode == nil { + log.Printf("invalid child, not a permanode: %v", childRef) + continue + } if target := child.Permanode.Attr.Get("camliSymlinkTarget"); target != "" { // This is a symlink. n.maybeAddChild(name, child.Permanode, &mutFile{