arjitkumar / rpms / ftp

Forked from rpms/ftp 5 years ago
Clone

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

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