Blame SOURCES/netkit-ftp-0.17-active-mode-option.patch

728ed8
--- netkit-ftp-0.17/ftp/main.c.orig	2012-08-22 14:13:47.452058828 +0200
728ed8
+++ netkit-ftp-0.17/ftp/main.c	2012-08-22 14:16:47.964124112 +0200
728ed8
@@ -87,7 +87,8 @@ static
728ed8
 void
728ed8
 usage(void)
728ed8
 {
728ed8
-	printf("\n\tUsage: { ftp | pftp } [-pinegvtd] [hostname]\n");
728ed8
+	printf("\n\tUsage: { ftp | pftp } [-Apinegvtd] [hostname]\n");
728ed8
+	printf("\t   -A: enable active mode\n");
728ed8
 	printf("\t   -p: enable passive mode (default for ftp and pftp)\n");
728ed8
 	printf("\t   -i: turn off prompting during mget\n");
728ed8
 	printf("\t   -n: inhibit auto-login\n");
728ed8
@@ -166,6 +167,10 @@ main(volatile int argc, char **volatile
728ed8
 				passivemode = 1;
728ed8
 				break;
728ed8
 
728ed8
+			case 'A':
728ed8
+				passivemode = 0;
728ed8
+				break;
728ed8
+
728ed8
 			case 'g':
728ed8
 				doglob = 0;
728ed8
 				break;
728ed8
--- netkit-ftp-0.17/ftp/ftp.1.orig      2009-10-26 15:38:34.000000000 -0500
728ed8
+++ netkit-ftp-0.17/ftp/ftp.1   2009-10-26 15:41:12.000000000 -0500
728ed8
@@ -58,6 +58,9 @@
728ed8
 Options may be specified at the command line, or to the
728ed8
 command interpreter.
728ed8
 .Bl -tag -width flag
728ed8
+.It Fl A
728ed8
+Use active mode for data transfers. This is useful for transmissions
728ed8
+to servers which do not support passive connections (for whatever reason.)
728ed8
 .It Fl p
728ed8
 Use passive mode for data transfers. Allows use of ftp in environments
728ed8
 where a firewall prevents connections from the outside world back to