aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/common_linux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index 5d477a16a..7b35f284f 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -2422,7 +2422,7 @@ static long syz_open_dev(volatile long a0, volatile long a1, volatile long a2)
*hash = '0' + (char)(nb % 10); // 10 devices should be enough for everyone.
nb /= 10;
}
- return open(buf, a2, 0);
+ return open(buf, a2 & ~O_CREAT, 0);
}
}
#endif