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

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