find: fix printing of paths containing % (format verbs)

This commit is contained in:
Michael Eischer committed 2026-11-28 20:27:06 +01:00
1 parent 79b676aa98
commit fc85e9eb9b
1 file changed
+1 -1
+1 -1
View File
@@ -171,7 +171,7 @@ func (s *statefulOutput) PrintPatternNormal(path string, node *data.Node) {
s.oldsn = s.newsn
s.printer.P("Found matching entries in snapshot %s from %s", s.oldsn.ID().Str(), s.oldsn.Time.Local().Format(global.TimeFormat))
}
s.printer.S(formatNode(path, node, s.ListLong, s.HumanReadable))
s.printer.S("%s", formatNode(path, node, s.ListLong, s.HumanReadable))
}
func (s *statefulOutput) PrintPattern(path string, node *data.Node) {