aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 71709f6..6911b07 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -977,7 +977,7 @@ int selftest_minimal_requirements(void)
exit(EXIT_SUCCESS);
}
- s = open(getopt_str(OPT_ROFILE), O_WRONLY|O_CREAT|O_TRUNC);
+ s = open(getopt_str(OPT_ROFILE), O_WRONLY|O_CREAT|O_TRUNC, 0);
if (s < 0 && errno != EEXIST)
goto error;
if (mkdir(getopt_str(OPT_RODIR), S_IRWXU) && errno != EEXIST)