1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-27 02:08:37 +00:00
restic/pipe
Alexander Neumann 604c27f001 Test pipe walker for invalid paths
It was discovered that when restic is instructed to save `/`, the tree
structures in the repository contain an invalid node.

When saving the dir `/home/user`, the following structure is created:

    snapshot
         -> tree
             nodes: ["user"]
             [...]

When the root directory `/` is saved, the structure is as follows:

    snapshot
         -> tree
             nodes: ["/"]
             [...]

This behavior is caused by the walker in pipe.go sending a node with the
name "." to the archiver, so this commit adds a test for invalid node
names.
2016-02-07 19:29:44 +01:00
..
doc.go Add doc stubs to all the packages 2015-05-09 13:00:01 +02:00
pipe.go pipe: make test platform-independent 2015-11-06 22:38:34 +01:00
pipe_test.go Test pipe walker for invalid paths 2016-02-07 19:29:44 +01:00