From 081721ff155e6fae822c7058dc8c8d2cd293a497 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 12 Dec 2017 12:24:52 +0100 Subject: pkg/report: clean guilty files --- pkg/report/linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/report/linux.go') diff --git a/pkg/report/linux.go b/pkg/report/linux.go index 5f966c8db..3e53488a2 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -360,7 +360,8 @@ func (ctx *linux) extractFiles(report []byte) []string { matches := filenameRe.FindAll(report, -1) var files []string for _, match := range matches { - files = append(files, string(bytes.Split(match, []byte{':'})[0])) + f := string(bytes.Split(match, []byte{':'})[0]) + files = append(files, filepath.Clean(f)) } return files } -- cgit mrf-deployment