From beaf55f1fc6bbe3f7b67acb2630d407d39faf8de Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 16 Oct 2017 20:22:01 +0200 Subject: [PATCH] dump: Allow absolute paths --- cmd/restic/cmd_dump.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))