diff options
author | Marinus Schraal <foser@gentoo.org> | 2003-11-27 13:10:10 +0000 |
---|---|---|
committer | Marinus Schraal <foser@gentoo.org> | 2003-11-27 13:10:10 +0000 |
commit | b7cf217bb11a397f8f0cddae031ba68e5202cc0f (patch) | |
tree | 8682ee77a518fb2cc76143f7ff9311d46866a4e0 /net-ftp/gftp/files | |
parent | add patch, bump rev (diff) | |
download | gentoo-2-b7cf217bb11a397f8f0cddae031ba68e5202cc0f.tar.gz gentoo-2-b7cf217bb11a397f8f0cddae031ba68e5202cc0f.tar.bz2 gentoo-2-b7cf217bb11a397f8f0cddae031ba68e5202cc0f.zip |
add patch, bump rev
Diffstat (limited to 'net-ftp/gftp/files')
-rw-r--r-- | net-ftp/gftp/files/digest-gftp-2.0.16-r1 (renamed from net-ftp/gftp/files/digest-gftp-2.0.16) | 0 | ||||
-rw-r--r-- | net-ftp/gftp/files/gftp-2.0.16-ipv6_fix.patch | 92 |
2 files changed, 92 insertions, 0 deletions
diff --git a/net-ftp/gftp/files/digest-gftp-2.0.16 b/net-ftp/gftp/files/digest-gftp-2.0.16-r1 index 9ea9117b1698..9ea9117b1698 100644 --- a/net-ftp/gftp/files/digest-gftp-2.0.16 +++ b/net-ftp/gftp/files/digest-gftp-2.0.16-r1 diff --git a/net-ftp/gftp/files/gftp-2.0.16-ipv6_fix.patch b/net-ftp/gftp/files/gftp-2.0.16-ipv6_fix.patch new file mode 100644 index 000000000000..bcc3f28ab66b --- /dev/null +++ b/net-ftp/gftp/files/gftp-2.0.16-ipv6_fix.patch @@ -0,0 +1,92 @@ +? Makefile +? Makefile.in +Index: options.h +=================================================================== +RCS file: /cvs/gnome/gftp/lib/options.h,v +retrieving revision 1.20 +diff -u -r1.20 options.h +--- options.h 21 Jul 2003 00:26:41 -0000 1.20 ++++ options.h 10 Nov 2003 01:55:49 -0000 +@@ -111,6 +111,12 @@ + {"default_protocol", N_("Default Protocol:"), + gftp_option_type_textcombo, "FTP", NULL, 0, + N_("This specifies the default protocol to use"), GFTP_PORT_ALL, NULL}, ++#if defined (HAVE_GETADDRINFO) && defined (HAVE_GAI_STRERROR) ++ {"enable_ipv6", N_("Enable IPv6"), ++ gftp_option_type_checkbox, GINT_TO_POINTER(1), NULL, ++ GFTP_CVARS_FLAGS_SHOW_BOOKMARK, ++ N_("Enable IPv6 support"), GFTP_PORT_ALL, NULL}, ++#endif + + {"list_dblclk_action", "", + gftp_option_type_int, GINT_TO_POINTER(0), NULL, 0, +Index: protocols.c +=================================================================== +RCS file: /cvs/gnome/gftp/lib/protocols.c,v +retrieving revision 1.70 +diff -u -r1.70 protocols.c +--- protocols.c 8 Nov 2003 12:23:20 -0000 1.70 ++++ protocols.c 10 Nov 2003 01:55:54 -0000 +@@ -1826,8 +1826,8 @@ + int port, sock; + #if defined (HAVE_GETADDRINFO) && defined (HAVE_GAI_STRERROR) + struct addrinfo hints, *res; ++ int errnum, enable_ipv6; + char serv[8]; +- int errnum; + + if ((request->use_proxy = gftp_need_proxy (request, service, + proxy_hostname, proxy_port)) < 0) +@@ -1835,10 +1835,17 @@ + else if (request->use_proxy == 1) + request->hostp = NULL; + ++ gftp_lookup_request_option (request, "enable_ipv6", &enable_ipv6); ++ + request->free_hostp = 1; + memset (&hints, 0, sizeof (hints)); + hints.ai_flags = AI_CANONNAME; +- hints.ai_family = PF_UNSPEC; ++ ++ if (enable_ipv6) ++ hints.ai_family = PF_UNSPEC; ++ else ++ hints.ai_family = AF_INET; ++ + hints.ai_socktype = SOCK_STREAM; + + if (request->use_proxy) +@@ -1926,7 +1933,7 @@ + if ((sock = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) + { + request->logging_function (gftp_logging_error, request, +- _("Failed to create a socket: %s\n"), ++ _("Failed to create a IPv4 socket: %s\n"), + g_strerror (errno)); + return (GFTP_ERETRYABLE); + } +Index: rfc959.c +=================================================================== +RCS file: /cvs/gnome/gftp/lib/rfc959.c,v +retrieving revision 1.47 +diff -u -r1.47 rfc959.c +--- rfc959.c 8 Nov 2003 12:23:20 -0000 1.47 ++++ rfc959.c 10 Nov 2003 01:55:57 -0000 +@@ -620,7 +620,7 @@ + if ((parms->data_connection = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) + { + request->logging_function (gftp_logging_error, request, +- _("Failed to create a socket: %s\n"), ++ _("Failed to create a IPv4 socket: %s\n"), + g_strerror (errno)); + gftp_disconnect (request); + return (GFTP_ERETRYABLE); +@@ -767,7 +767,7 @@ + if ((parms->data_connection = socket (AF_INET6, SOCK_STREAM, IPPROTO_TCP)) < 0) + { + request->logging_function (gftp_logging_error, request, +- _("Failed to create a socket: %s\n"), ++ _("Failed to create a IPv6 socket: %s\n"), + g_strerror (errno)); + gftp_disconnect (request); + return (GFTP_ERETRYABLE); |