X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fsendfile_grouplock.c;h=5cd8d5efc48530b3cca5426f1396e286efb5b9cf;hb=e130c75827b2f40d89cb69ac5c64bb94d67c520c;hp=42d66a3c8c6a3b2a63c20b11dffe520771748206;hpb=3e6c20afa18a64c5cb949ecf2ed0f49202ba3e15;p=fs%2Flustre-release.git diff --git a/lustre/tests/sendfile_grouplock.c b/lustre/tests/sendfile_grouplock.c index 42d66a3..5cd8d5e 100644 --- a/lustre/tests/sendfile_grouplock.c +++ b/lustre/tests/sendfile_grouplock.c @@ -60,6 +60,7 @@ #include #include #include +#include #include #include #include @@ -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));