diff --git a/test/path.c b/test/path.c index 7d7c4455..729ad868 100644 --- a/test/path.c +++ b/test/path.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include "litest.h" @@ -131,6 +132,7 @@ START_TEST(path_create_invalid_file) char path[] = "/tmp/litest_path_XXXXXX"; int fd; + umask(002); fd = mkstemp(path); ck_assert_int_ge(fd, 0); close(fd);