Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Cause:
The code handling errors while connecting to remote host didn't backed up the error value until checking it. The error value was therefore overwritten by a different error value before checking.
Consequence:
As a result, lftp failed to connect to a remote host if the client host didn't have IPv6 connection, but the remote host domain name was resolved also to IPv6 addresses. Therefore lftp failed to connect to the first IPv6 remote host address and existed.
Fix:
The error checking code was fixed to back up the appropriate error value before checking. Therefore the value is now not overwritten and the right error value is checked later on.
Result:
As a result lftp is not able to connect to a remote host which domain name resolves to also IPv6 addresses, from the client which has only IPv4 connectivity.
Description of problem:
lftp uses ipv6 addresses even when ipv6 is not available
Version-Release number of selected component (if applicable):
$ rpm -q lftp
lftp-4.0.9-1.el6.i686
How reproducible:
Always
Steps to Reproduce:
1. $ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:1B:72:D9
inet addr:192.168.120.2 Bcast:192.168.120.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3060 errors:0 dropped:0 overruns:0 frame:0
TX packets:2885 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:607125 (592.8 KiB) TX bytes:386040 (376.9 KiB)
Interrupt:19 Base address:0x2000
2. $ lftp -d http://ftp.twaren.net/Linux/
---- Connecting to ftp.twaren.net (2001:e10:5c00:5::9) port 80
**** connect: Network is unreachable
---- Closing HTTP connection
cd: Success
3. $ lftp -d http://releases.ubuntu.com/
---- Connecting to releases.ubuntu.com (2001:7b8:3:37::21:1) port 80
**** connect: Network is unreachable
---- Closing HTTP connection
cd: Success
Actual results:
As above.
Expected results:
$ lftp http://ftp.twaren.net/Linux/
cd ok, cwd=/Linux
Additional info:
1. Similar bug report is available here:
https://bugs.launchpad.net/ubuntu/+source/lftp/+bug/736479
2. After switching to lftp-4.2.1-1.fc15.i686.rpm or lftp-4.0.5-2.fc13.i686.rpm, this issue is gone.
Comment 2RHEL Program Management
2011-08-24 01:27:56 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.
Created attachment 542447[details]
The patch fixes described issue
Attached patch corrects errno handling. This enables trying other IPs to connect. The patch fixes this issue for me.
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.
Comment 6RHEL Program Management
2012-09-07 05:11:42 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.
Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-0793.html
Description of problem: lftp uses ipv6 addresses even when ipv6 is not available Version-Release number of selected component (if applicable): $ rpm -q lftp lftp-4.0.9-1.el6.i686 How reproducible: Always Steps to Reproduce: 1. $ ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:0C:29:1B:72:D9 inet addr:192.168.120.2 Bcast:192.168.120.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3060 errors:0 dropped:0 overruns:0 frame:0 TX packets:2885 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:607125 (592.8 KiB) TX bytes:386040 (376.9 KiB) Interrupt:19 Base address:0x2000 2. $ lftp -d http://ftp.twaren.net/Linux/ ---- Connecting to ftp.twaren.net (2001:e10:5c00:5::9) port 80 **** connect: Network is unreachable ---- Closing HTTP connection cd: Success 3. $ lftp -d http://releases.ubuntu.com/ ---- Connecting to releases.ubuntu.com (2001:7b8:3:37::21:1) port 80 **** connect: Network is unreachable ---- Closing HTTP connection cd: Success Actual results: As above. Expected results: $ lftp http://ftp.twaren.net/Linux/ cd ok, cwd=/Linux Additional info: 1. Similar bug report is available here: https://bugs.launchpad.net/ubuntu/+source/lftp/+bug/736479 2. After switching to lftp-4.2.1-1.fc15.i686.rpm or lftp-4.0.5-2.fc13.i686.rpm, this issue is gone.