sync request - iperf fails to die when bind fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iperf (Debian) |
Fix Released
|
Unknown
|
|||
iperf (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland |
Bug Description
Binary package hint: iperf
When iperf is ran as an normal user, and you tell it to listen on a privileged port (anything below 1024), it should die when the bind fails. Instead, it acts as if its still listening on the port you specified.
bwindle@wh-mon06:~$ apt-cache policy iperf
iperf:
Installed: 2.0.4-1
Candidate: 2.0.4-1
Version table:
*** 2.0.4-1 0
500 http://
100 /var/lib/
bwindle@wh-mon06:~$ iperf -s -p 500
bind failed: Permission denied
-------
Server listening on TCP port 500
TCP window size: 85.3 KByte (default)
-------
----
Sync request of iperf version 2.0.4-4 from Debian unstable.
iperf (2.0.4-4) unstable; urgency=low
* Die instead of warn on bind/connect fatal errors (thanks to Deny IP Any
Any). (closes: #517239, #518033)
* Add missing comma after ${shlibs:Depends} in the control file. Add
Homepage in control file. (thanks to lintian).
-- Roberto Lumbreras <email address hidden> Wed, 04 Mar 2009 12:46:12 +0100
Changed in iperf: | |
importance: | Undecided → Unknown |
status: | New → Unknown |
Changed in iperf: | |
status: | Unknown → Fix Released |
description: | updated |
description: | updated |
I've created a patch which fixes this bug.
According to a 4-year old post on the 'net (http:// archive. ncsa.uiuc. edu/lists/ iperf-users/ jun05/msg00005. html), this has been around a while.