summaryrefslogtreecommitdiff
path: root/test/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/common.c')
-rw-r--r--test/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/common.c b/test/common.c
index 44924e7..ec1c8d3 100644
--- a/test/common.c
+++ b/test/common.c
@@ -39,7 +39,7 @@ uint64_t local_time_offset = 0;
void *read_file_into_mem(const char *path, size_t *len)
{
- int fd = open(path, O_RDONLY);
+ int fd = open(path, O_RDONLY | O_NOCTTY);
if (fd == -1) {
fprintf(stderr, "Failed to open '%s'", path);
return NULL;