Subject: bin/11578: x_ftp from alpha "make release" does not build, inet6 problem
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 11/27/2000 07:56:39
>Number:         11578
>Category:       bin
>Synopsis:       x_ftp from alpha "make release" does not build, inet6 problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 27 07:56:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     TheMan
>Release:        20001125-current
>Organization:
none
>Environment:
	
System: NetBSD this 1.5K NetBSD 1.5K (THAT) #22: Sun Nov 26 01:47:48 GMT 2000     andrew@this:/usr/src/sys/arch/i386/compile/THAT i386


>Description:

/usr/src/distrib/utils/x_ftp/../../../usr.bin/ftp/ftp.c: In function `initconn':
/usr/src/distrib/utils/x_ftp/../../../usr.bin/ftp/ftp.c:1631: union has no member named `su_sin6'

>How-To-Repeat:

find a -current alpha
cd /usr/src/distrib/utils/x_ftp
make

>Fix:

Index: ftp.c
===================================================================
RCS file: /cvsroot/basesrc/usr.bin/ftp/ftp.c,v
retrieving revision 1.112
diff -u -r1.112 ftp.c
--- ftp.c	2000/11/24 13:01:24	1.112
+++ ftp.c	2000/11/27 15:50:58
@@ -1627,8 +1627,10 @@
 #endif
 			af = (data_addr.su_family == AF_INET) ? 1 : 2;
 			tmp = data_addr;
+#ifdef INET6
 			if (tmp.su_family == AF_INET6)
 				tmp.si_su.su_sin6.sin6_scope_id = 0;
+#endif
 			if (getnameinfo((struct sockaddr *)&tmp.si_su,
 			    tmp.su_len, hname, sizeof(hname), sname,
 			    sizeof(sname), NI_NUMERICHOST | NI_NUMERICSERV)) {
>Release-Note:
>Audit-Trail:
>Unformatted: