Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jan 2000 08:26:39 -0800 (PST)
From:      jburkhol@home.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/16146: unbreak ports/ftp/lftp for INET6
Message-ID:  <20000116162639.85C9DBA50@io.yi.org>

next in thread | raw e-mail | index | archive | help

>Number:         16146
>Category:       ports
>Synopsis:       unbreak ports/ftp/lftp for INET6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 16 08:30:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jake Burkholder
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
none
>Environment:

4.0-CURRENT

>Description:

ftpclass.cc:151: `struct in6_addr' has no member named `s6_addr32'
*** Error code 1

>How-To-Repeat:

cd /usr/ports/ftp/lftp; make;

>Fix:

diff -urN /usr/ports/ftp/lftp.old/patches/patch-ab /usr/ports/ftp/lftp/patches/patch-ab
--- /usr/ports/ftp/lftp.old/patches/patch-ab	Wed Dec 31 16:00:00 1969
+++ /usr/ports/ftp/lftp/patches/patch-ab	Sun Jan 16 08:18:14 2000
@@ -0,0 +1,11 @@
+--- src/ftpclass.cc	Sat Oct  9 07:14:51 1999
++++ ftpclass.cc	Sun Jan 16 08:07:45 2000
+@@ -148,7 +148,7 @@
+    if(d.sa.sa_family==AF_INET && c.sa.sa_family==AF_INET6
+       && IN6_IS_ADDR_V4MAPPED(&c.in6.sin6_addr))
+    {
+-      if(memcmp(&d.in.sin_addr,&c.in6.sin6_addr.s6_addr32[3],4))
++      if(memcmp(&d.in.sin_addr,&c.in6.sin6_addr.s6_addr[12],4))
+ 	 goto address_mismatch;
+       if(d.in.sin_port!=htons(FTP_DATA_PORT))
+ 	 goto wrong_port;

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000116162639.85C9DBA50>