diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-dashtool/dashtool.go | 3 |
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 } |
