forked from rpms/iperf3
c3bfd85aed
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/iperf3#19024d7a8fbad3a39a1c966a60029fcb2100fde0
12 lines
625 B
Diff
12 lines
625 B
Diff
--- iperf-3.0.3/src/iperf_api.c 2014-03-26 23:36:38.000000000 +0530
|
|
+++ iperf-3.0.3.patch/src/iperf_api.c 2014-06-09 23:31:46.183346802 +0530
|
|
@@ -2215,7 +2215,7 @@ iperf_new_stream(struct iperf_test *test
|
|
sp->rcv = test->protocol->recv;
|
|
|
|
if (test->diskfile_name != (char*) 0) {
|
|
- sp->diskfile_fd = open(test->diskfile_name, test->sender ? O_RDONLY : (O_WRONLY|O_CREAT|O_TRUNC));
|
|
+ sp->diskfile_fd = open(test->diskfile_name, test->sender ? O_RDONLY : (O_WRONLY|O_CREAT|O_TRUNC), S_IRUSR|S_IWUSR);
|
|
if (sp->diskfile_fd == -1) {
|
|
i_errno = IEFILE;
|
|
munmap(sp->buffer, sp->test->settings->blksize);
|