Susant Sahani c0885cc
--- iperf-3.0.3/src/iperf_api.c	2014-03-26 23:36:38.000000000 +0530
Susant Sahani c0885cc
+++ iperf-3.0.3.patch/src/iperf_api.c	2014-06-09 23:31:46.183346802 +0530
Susant Sahani c0885cc
@@ -2215,7 +2215,7 @@ iperf_new_stream(struct iperf_test *test
Susant Sahani c0885cc
     sp->rcv = test->protocol->recv;
Susant Sahani c0885cc
 
Susant Sahani c0885cc
     if (test->diskfile_name != (char*) 0) {
Susant Sahani c0885cc
-	sp->diskfile_fd = open(test->diskfile_name, test->sender ? O_RDONLY : (O_WRONLY|O_CREAT|O_TRUNC));
Susant Sahani c0885cc
+	sp->diskfile_fd = open(test->diskfile_name, test->sender ? O_RDONLY : (O_WRONLY|O_CREAT|O_TRUNC), S_IRUSR|S_IWUSR);
Susant Sahani c0885cc
 	if (sp->diskfile_fd == -1) {
Susant Sahani c0885cc
 	    i_errno = IEFILE;
Susant Sahani c0885cc
             munmap(sp->buffer, sp->test->settings->blksize);