Description of problem: Telnet command loops printing sleep(5) from telnet, after select if -b is specified for an unavailable interface. In this state, the escape char is not recognized, and INT (^C) doesn't work either. The only out is to kill the process from another window. Telnet should exit after printing the "Cannot assign requested address" error. Version-Release number of selected component (if applicable): This is fedora 14 - up to date as of 7-May-11 - I can't find a version number for the telnet command (with -v, --version, or help from an escape.) Perhaps that should also be addreses. How reproducible: Steps to Reproduce: 1. telnet -b validhost.not.local.interface valid.remote.host 25 2. 3. Actual results: # telnet -b posted.example.net hormel.ieee.org 25 Trying 140.98.193.224... posted.example.net: Cannot assign requested address No connection. Escape character is '^]'. SetSockOpt: Bad file descriptor sleep(5) from telnet, after select sleep(5) from telnet, after select ^Csleep(5) from telnet, after select ^]sleep(5) from telnet, after select ^]sleep(5) from telnet, after select qsleep(5) from telnet, after select ^Csleep(5) from telnet, after select ^Csleep(5) from telnet, after select ^Csleep(5) from telnet, after select ^Csleep(5) from telnet, after select ^Csleep(5) from telnet, after select ^Csleep(5) from telnet, after select ^Csleep(5) from telnet, after select ^Zsleep(5) from telnet, after select sleep(5) from telnet, after select sleep(5) from telnet, after select sleep(5) from telnet, after select sleep(5) from telnet, after select sleep(5) from telnet, after select Terminated Expected results: # telnet -b posted.example.net hormel.ieee.org 25 Trying 140.98.193.224... posted.example.net: Cannot assign requested address # Additional info:
Created attachment 512176 [details] proposed patch Hi, try this patch ported from openbsd.
(In reply to comment #1) > Created attachment 512176 [details] > proposed patch > Hi, try this patch ported from openbsd. That patch doesn't match the sources in: ftp://ftp.muug.mb.ca/mirror/fedora/linux/releases/14/Fedora/source/SRPMS/telnet-0.17-47.fc14.src.rpm I reworked and will attach version that does. This does fix the bug. Thanks. # ./BUILD/netkit-telnet-0.17/telnet/telnet -b posted.example.net hormel.ieee.org 25 Trying 140.98.193.224... Couldn't bind to posted.example.net posted.example.net: Cannot assign requested address # echo $? 1
Created attachment 512199 [details] Patch matching sources This version of the proposed patch matches the sources at ftp://ftp.muug.mb.ca/mirror/fedora/linux/releases/14/Fedora/source/SRPMS/telnet-0.17-47.fc14.src.rpm It does resolve the problem. If this is not the correct location for the telnet source (note it does match the version), please advise. Thanks.
telnet-0.17-51.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/telnet-0.17-51.fc15
telnet-0.17-51.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/telnet-0.17-51.fc14
Package telnet-0.17-51.fc14: * should fix your issue, * was pushed to the Fedora 14 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing telnet-0.17-51.fc14' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/telnet-0.17-51.fc14 then log in and leave karma (feedback).
tested: works, added +karma Thanks again.
telnet-0.17-51.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
telnet-0.17-51.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.