diff --git a/src/bin/dstcheck.cpp b/src/bin/dstcheck.cpp index c58ae410b0..cc634cc34d 100644 --- a/src/bin/dstcheck.cpp +++ b/src/bin/dstcheck.cpp @@ -103,7 +103,7 @@ main(int argc, char **argv) strcat(path, "/time_dststatus"); bool newFile = false; bool dst = false; - int fd = open(path, O_RDWR | O_EXCL | O_CREAT); + int fd = open(path, O_RDWR | O_EXCL | O_CREAT, S_IRUSR | S_IWUSR); if (fd < 0) { newFile = false; fd = open(path, O_RDWR);