]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-clock.c
fileio: simplify mkostemp_safe() (#4090)
[thirdparty/systemd.git] / src / test / test-clock.c
index 84f775e5bc2cbdd10d90f76a325eb8c3e6946a54..7d97328416b433ffa49382883c3d5d94e6bae4cc 100644 (file)
@@ -55,7 +55,7 @@ static void test_clock_is_localtime(void) {
         /* without an adjtime file we default to UTC */
         assert_se(clock_is_localtime("/nonexisting/adjtime") == 0);
 
-        fd = mkostemp_safe(adjtime, O_WRONLY|O_CLOEXEC);
+        fd = mkostemp_safe(adjtime);
         assert_se(fd >= 0);
         log_info("adjtime test file: %s", adjtime);
         f = fdopen(fd, "w");