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

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