diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2001-09-18 09:15:41 +0000 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2001-09-18 09:15:41 +0000 |
commit | 8041a2f8f3c0a5df77eeaad7f8ebf6ec67493a96 (patch) | |
tree | 57b56faf2a0c50beb4ada31069b9bcb1f4fc68a5 /ftp | |
parent | 28ae4d51f4fd143cd26953dcc7b18c711d0643ff (diff) | |
download | FreeBSD-ports-8041a2f8f3c0a5df77eeaad7f8ebf6ec67493a96.zip FreeBSD-ports-8041a2f8f3c0a5df77eeaad7f8ebf6ec67493a96.tar.gz |
Add support for Socket6-0.11.
Submitted by: ume
Diffstat (limited to 'ftp')
-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 3df2c9b..672cff0 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 86e5901..35eb097 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); |