diff --git a/tests/torture.c b/tests/torture.c index ab46e9e9..65fbc062 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -621,7 +621,7 @@ void torture_write_file(const char *filename, const char *data){ assert_true(filename[0] != '\0'); assert_non_null(data); - fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 0755); + fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 0600); assert_true(fd >= 0); rc = write(fd, data, strlen(data));