From: Sergey Matveev Date: Tue, 30 Aug 2022 11:11:21 +0000 (+0300) Subject: zfs-diff appends / to dataset roots X-Git-Tag: v0.1.0~3 X-Git-Url: http://www.git.stargrave.org/?p=glocate.git;a=commitdiff_plain;h=66cef1659e7d49d330e693b5747bed1167c6294622908a868adc0597c7d5743a zfs-diff appends / to dataset roots --- 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 }