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

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