aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-02-16 15:14:25 +0100
committerDmitry Vyukov <dvyukov@google.com>2016-02-16 15:14:25 +0100
commit9724efa3358566378773cef6e72026f89c007930 (patch)
tree5f368aa10c58a8915c4a479eb852ee962b0ef4e3 /tools
parent8c1b44717f6f6075841e2343ae4a54dc67f581a7 (diff)
config: check presence of syz-execprog only in syz-repro
syz-execprog is not built by 'make', so syz-manager fails for first-timers.
Diffstat (limited to 'tools')
-rw-r--r--tools/syz-repro/repro.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/syz-repro/repro.go b/tools/syz-repro/repro.go
index a74791f62..ade3852ee 100644
--- a/tools/syz-repro/repro.go
+++ b/tools/syz-repro/repro.go
@@ -46,6 +46,9 @@ func main() {
if *flagCount > 0 {
cfg.Count = *flagCount
}
+ if _, err := os.Stat(filepath.Join(cfg.Syzkaller, "bin/syz-execprog")); err != nil {
+ log.Fatalf("bin/syz-execprog is missing (run 'make execprog')")
+ }
if len(flag.Args()) != 1 {
log.Fatalf("usage: syz-repro -config=config.file execution.log")