Whamcloud - gitweb
LU-8277 scripts: add missing commas in checkpatch.pl
[fs/lustre-release.git] / lustre / tests / sendfile_grouplock.c
index 42d66a3..5cd8d5e 100644 (file)
@@ -60,6 +60,7 @@
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <time.h>
 #include <unistd.h>
 #include <poll.h>
 #include <sys/sendfile.h>
@@ -226,7 +227,7 @@ static int sendfile_copy(const char *source, int source_gid,
                        source_gid, source, strerror(-rc));
        }
 
-       fd_out = open(dest, O_WRONLY | O_TRUNC | O_CREAT);
+       fd_out = open(dest, O_WRONLY | O_TRUNC | O_CREAT, 0644);
        ASSERTF(fd_out >= 0, "creation failed for '%s': %s",
                dest, strerror(errno));