From 4cc7e0862826e6703642cfbf6440e3ef8fd8da0e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 17 Jun 2017 12:23:52 +0200 Subject: all: use osutil.IsExist instead of os.Stat --- tools/syz-dashtool/dashtool.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/syz-dashtool/dashtool.go b/tools/syz-dashtool/dashtool.go index ca5fe7eac..df31f32e7 100644 --- a/tools/syz-dashtool/dashtool.go +++ b/tools/syz-dashtool/dashtool.go @@ -17,6 +17,7 @@ import ( "strings" "github.com/google/syzkaller/dashboard" + "github.com/google/syzkaller/pkg/osutil" ) var ( @@ -149,7 +150,7 @@ func reportRepro(dash *dashboard.Dashboard, crashdir string) { } func reportAll(dash *dashboard.Dashboard, crashes string) { - if _, err := os.Stat(filepath.Join(crashes, "description")); err == nil { + if osutil.IsExist(filepath.Join(crashes, "description")) { uploadDir(dash, crashes) return } -- cgit mrf-deployment