aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-06-17 12:23:52 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-06-17 12:23:52 +0200
commit4cc7e0862826e6703642cfbf6440e3ef8fd8da0e (patch)
treeb3e303671a69de4036f3e5516f87483b154adc53 /tools
parent13c5bfcc6ec165fe0cf988a3e92bbd8d8619411b (diff)
all: use osutil.IsExist instead of os.Stat
Diffstat (limited to 'tools')
-rw-r--r--tools/syz-dashtool/dashtool.go3
1 files changed, 2 insertions, 1 deletions
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
}