1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-02-02 12:34:10 +00:00

Checker: handle symlinks

This commit is contained in:
Alexander Neumann 2016-05-08 23:16:01 +02:00
parent a2224e380b
commit 20afed4058

View file

@ -608,6 +608,9 @@ func (c *Checker) checkTree(id backend.ID, tree *restic.Tree) (errs []error) {
continue continue
} }
case "symlink":
// nothing to check
default: default:
errs = append(errs, Error{TreeID: id, Err: fmt.Errorf("node %q with invalid type %q", node.Name, node.Type)}) errs = append(errs, Error{TreeID: id, Err: fmt.Errorf("node %q with invalid type %q", node.Name, node.Type)})
} }