diff options
author | kitone <kitone@free.fr> | 2020-08-30 00:08:38 +0200 |
---|---|---|
committer | Michael Eischer <michael.eischer@fau.de> | 2020-10-10 13:46:44 +0200 |
commit | 6099f81692be33f4c421dcc7243bf920bd159e94 (patch) | |
tree | 557c76398289738d1877d4e711b936ce70736d7b /internal/restorer/restorer_test.go | |
parent | 9d7f616190c58fc569a6aed40943e64a088b97ea (diff) |
Fix #1212 restore code produces inconsistent timestamps/permissions.
Keep track of restored child status so parent and root directory not selected by filter will also restore metadata when traversing tree.
Diffstat (limited to 'internal/restorer/restorer_test.go')
-rw-r--r-- | internal/restorer/restorer_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/restorer/restorer_test.go b/internal/restorer/restorer_test.go index d37cffb16..661191410 100644 --- a/internal/restorer/restorer_test.go +++ b/internal/restorer/restorer_test.go @@ -692,7 +692,7 @@ func TestRestorerTraverseTree(t *testing.T) { // make sure we're creating a new subdir of the tempdir target := filepath.Join(tempdir, "target") - err = res.traverseTree(ctx, target, string(filepath.Separator), *sn.Tree, test.Visitor(t)) + _, err = res.traverseTree(ctx, target, string(filepath.Separator), *sn.Tree, test.Visitor(t)) if err != nil { t.Fatal(err) } |