From 5afa2ddd5aa721e6eea3e51e2f5ed238479eec86 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 21 May 2020 18:19:14 +0200 Subject: tools/syz-check: fix path calculation pkg/ast now gives full file name in Pos. --- tools/syz-check/check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/syz-check/check.go b/tools/syz-check/check.go index 49152f481..29f88093a 100644 --- a/tools/syz-check/check.go +++ b/tools/syz-check/check.go @@ -185,7 +185,7 @@ func writeWarnings(OS string, narches int, warnings []Warn) error { } fmt.Fprintf(buf, "%v: %v%v\n", warn.typ, warn.msg, archStr) } - warnFile := filepath.Join("sys", OS, file+".warn") + warnFile := file + ".warn" if err := osutil.WriteFile(warnFile, buf.Bytes()); err != nil { return err } -- cgit mrf-deployment