mirror of
https://github.com/restic/restic.git
synced 2025-05-15 19:50:44 +00:00

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.