diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2001-09-18 09:15:41 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2001-09-18 09:15:41 +0000 |
commit | a680e8c1b5d7084e2abc628a6a3496b4667b0f61 (patch) | |
tree | a65208f9fecf1b49bf891de4836ecfc4761b9da9 /ftp | |
parent | Update to 0.12.1. (diff) |
Add support for Socket6-0.11.
Submitted by: ume
Notes
Notes:
svn path=/head/; revision=47949
Diffstat (limited to '')
-rw-r--r-- | ftp/ftpmirror/Makefile | 2 | ||||
-rw-r--r-- | ftp/ftpmirror/files/patch-TCP.pm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ftp/ftpmirror/Makefile b/ftp/ftpmirror/Makefile index 3df2c9bc8a3e..672cff082ce7 100644 --- a/ftp/ftpmirror/Makefile +++ b/ftp/ftpmirror/Makefile @@ -7,7 +7,7 @@ PORTNAME= ftpmirror PORTVERSION= 1.96 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= ftp ipv6 MASTER_SITES= ftp://ftp.intec.co.jp/pub/utils/ftpmirror/beta/ diff --git a/ftp/ftpmirror/files/patch-TCP.pm b/ftp/ftpmirror/files/patch-TCP.pm index 86e5901413ae..35eb097270da 100644 --- a/ftp/ftpmirror/files/patch-TCP.pm +++ b/ftp/ftpmirror/files/patch-TCP.pm @@ -91,7 +91,7 @@ diff -u -r1.1.1.1 -r1.12 - splice(@addr, 0, 4); + # check server name and try to parse port number + my @infos = getaddrinfo($host, $port, AF_UNSPEC, SOCK_STREAM); -+ if ($#infos < 0) { ++ if ($#infos < 1) { + carp("$self: getaddrinfo($host, $port) - $?"); + my $e = $?.''; + $self->error($e, &FATAL); @@ -103,7 +103,7 @@ diff -u -r1.1.1.1 -r1.12 # connect (connect returns "Invalid Argument"). So we # create/close a socket in each iteration. - for my $i (@addr) { -+ while ($#infos >= 0) { ++ while ($#infos >= 1) { + my ($family, $socktype, $proto, $peer, $canonname) + = splice(@infos, 0, 5); |