From 88634dac3acf700a01034d3881b18034b8cd721a Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 28 Aug 2016 20:04:09 +0200 Subject: [PATCH] Remove check for filemode 0 --- src/restic/checker/checker.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/restic/checker/checker.go b/src/restic/checker/checker.go index 0e29c4d50..fc15b35fd 100644 --- a/src/restic/checker/checker.go +++ b/src/restic/checker/checker.go @@ -586,10 +586,6 @@ func (c *Checker) checkTree(id backend.ID, tree *restic.Tree) (errs []error) { errs = append(errs, Error{TreeID: id, Err: fmt.Errorf("file %q has nil blob list", node.Name)}) } - if node.Mode == 0 { - errs = append(errs, Error{TreeID: id, Err: fmt.Errorf("file %q has invalid mode: %v", node.Name, node.Mode)}) - } - for b, blobID := range node.Content { if blobID.IsNull() { errs = append(errs, Error{TreeID: id, Err: fmt.Errorf("file %q blob %d has null ID", node.Name, b)})