summaryrefslogtreecommitdiff
path: root/test/fuzz_hook_ext.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/fuzz_hook_ext.c')
-rw-r--r--test/fuzz_hook_ext.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fuzz_hook_ext.c b/test/fuzz_hook_ext.c
index a53f08f..aea177b 100644
--- a/test/fuzz_hook_ext.c
+++ b/test/fuzz_hook_ext.c
@@ -133,7 +133,8 @@ int main(int argc, char **argv)
uint32_t fsize = data[cursor++];
if (fsize == 0) {
/* 'copy' sink */
- new_fileno = open("/dev/null", O_WRONLY);
+ new_fileno = open("/dev/null",
+ O_WRONLY | O_NOCTTY);
if (new_fileno == -1) {
wp_error("Failed to open /dev/null");
}