bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] paxutils: unable to work over ipv6


From: Pavel Raiskup
Subject: [Bug-tar] paxutils: unable to work over ipv6
Date: Wed, 29 Jan 2014 13:01:13 +0100
User-agent: KMail/4.11.5 (Linux/3.12.8-300.fc20.x86_64; KDE/4.11.5; x86_64; ; )

Hi,

$Subject is truth because of gethostbyname call from paxutils which works
for ipv4 only.  We should use getaddrinfo these days for checking for
existing hostname/ip address.

Steps to reproduce (linux):

  $ sudo ifconfig em1 inet6 add         aaaa:aaaa:2:1::aaaa:1/64
  $ sudo route -A inet6 add default gw  aaaa:aaaa:2:1::1
  $ sudo su - -c 'echo "aaaa:aaaa:2:1::aaaa:1 test_domain"  >> /etc/hosts'
  $ ping6 test_domain 
  PING test_domain(test_domain) 56 data bytes
  64 bytes from test_domain: icmp_seq=1 ttl=64 time=0.047 ms
  ^C
  --- test_domain ping statistics ---
  1 packets transmitted, 1 received, 0% packet loss, time 0ms
  rtt min/avg/max/mdev = 0.047/0.047/0.047/0.000 ms
  $ # Configure tar with $RSH & --with-rmt pointing to correct binaries
  $ RSH=/usr/bin/ssh ./configure --with-rmt=/usr/sbin/rmt
  $ ./src/tar -cvf test_domain:/tmp/test.tar Makefile
  tar: Cannot connect to test_domain: resolve failed

Fix for paxutils attached.

Pavel

Attachment: 0001-paxutils-use-getaddrinfo-instead-of-gethostbyname.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]