aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/executor_bsd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/executor_bsd.cc b/executor/executor_bsd.cc
index 844cfd5a3..07bdb0b26 100644
--- a/executor/executor_bsd.cc
+++ b/executor/executor_bsd.cc
@@ -70,7 +70,7 @@ int main(int argc, char** argv)
for (;;) {
receive_execute(false);
char cwdbuf[128] = "/syz-tmpXXXXXX";
- if (mkdtemp(cwdbuf))
+ if (!mkdtemp(cwdbuf))
fail("mkdtemp failed");
int pid = fork();
if (pid < 0)