diff --git a/cmd/restic/cmd_dump.go b/cmd/restic/cmd_dump.go index 566819095..7d07552d2 100644 --- a/cmd/restic/cmd_dump.go +++ b/cmd/restic/cmd_dump.go @@ -49,7 +49,7 @@ func init() { func splitPath(path string) []string { d, f := filepath.Split(path) - if d == "" { + if d == "" || d == "/" { return []string{f} } s := splitPath(filepath.Clean(d))