fix compilation BZ #1106803
This commit is contained in:
parent
b754668c56
commit
c0885cc1cb
11
fix-compilation-open-argument.patch
Normal file
11
fix-compilation-open-argument.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- 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);
|
@ -1,12 +1,13 @@
|
|||||||
Name: iperf3
|
Name: iperf3
|
||||||
Version: 3.0.3
|
Version: 3.0.3
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Measurement tool for TCP/UDP bandwidth performance
|
Summary: Measurement tool for TCP/UDP bandwidth performance
|
||||||
|
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://github.com/esnet/iperf
|
URL: http://github.com/esnet/iperf
|
||||||
Source0: http://stats.es.net/software/iperf-%{version}.tar.gz
|
Source0: http://stats.es.net/software/iperf-%{version}.tar.gz
|
||||||
|
Patch0: fix-compilation-open-argument.patch
|
||||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
BuildRequires: libuuid-devel
|
BuildRequires: libuuid-devel
|
||||||
|
|
||||||
@ -26,6 +27,7 @@ developing applications that use %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n iperf-%{version}
|
%setup -q -n iperf-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
@ -57,6 +59,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 10 2014 Susant Sahani <ssahani@redhat.com> - 3.0.3-5
|
||||||
|
- fix compilation BZ #1106803
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-4
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user