From 66cef1659e7d49d330e693b5747bed1167c6294622908a868adc0597c7d5743a Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 30 Aug 2022 14:11:21 +0300 Subject: [PATCH] zfs-diff appends / to dataset roots --- diff.go | 1 + 1 file changed, 1 insertion(+) diff --git a/diff.go b/diff.go index 31712d6..be79911 100644 --- a/diff.go +++ b/diff.go @@ -61,6 +61,7 @@ func updateWithDiff(dbPath, strip string) *os.File { } isDir = cols[1] == "/" name := deoctalize(strings.TrimPrefix(cols[2], strip)) + name = strings.TrimRight(name, "/") if name == "" { continue } -- 2.44.0