cvsdist 2f4f4a3
diff -urN netkit-ftp-0.17-pre20000412/ftp/ftp.1 netkit-ftp-0.17-pre20000412.new/ftp/ftp.1
cvsdist 2f4f4a3
--- netkit-ftp-0.17-pre20000412/ftp/ftp.1	Thu Apr 13 03:56:03 2000
cvsdist 2f4f4a3
+++ netkit-ftp-0.17-pre20000412.new/ftp/ftp.1	Wed Aug 16 14:13:10 2000
cvsdist 2f4f4a3
@@ -62,8 +62,10 @@
cvsdist 2f4f4a3
 Use passive mode for data transfers. Allows use of ftp in environments
cvsdist 2f4f4a3
 where a firewall prevents connections from the outside world back to
cvsdist 2f4f4a3
 the client machine. Requires that the ftp server support the PASV
cvsdist 2f4f4a3
-command. This is the default if invoked as
cvsdist 2f4f4a3
-.Nm pftp.
cvsdist 2f4f4a3
+command. This is the default now for
cvsdist 2f4f4a3
+.Nm all
cvsdist 2f4f4a3
+clients (ftp and pftp) due to security concerns using the PORT transfer mode.
cvsdist 2f4f4a3
+The flag is kept for compatibility only and has no effect anymore.
cvsdist 2f4f4a3
 .It Fl i
cvsdist 2f4f4a3
 Turns off interactive prompting during multiple file transfers.
cvsdist 2f4f4a3
 .It Fl n
cvsdist 2f4f4a3
diff -urN netkit-ftp-0.17-pre20000412/ftp/ftp.c netkit-ftp-0.17-pre20000412.new/ftp/ftp.c
cvsdist 2f4f4a3
--- netkit-ftp-0.17-pre20000412/ftp/ftp.c	Mon Dec 13 21:33:20 1999
cvsdist 2f4f4a3
+++ netkit-ftp-0.17-pre20000412.new/ftp/ftp.c	Wed Aug 16 14:12:50 2000
cvsdist 2f4f4a3
@@ -883,7 +883,7 @@
cvsdist 2f4f4a3
 	}
cvsdist 2f4f4a3
 	if (fstat(fileno(fout), &st) < 0 || st.st_blksize == 0)
cvsdist 2f4f4a3
 		st.st_blksize = BUFSIZ;
cvsdist 2f4f4a3
-	if (st.st_blksize > bufsize) {
cvsdist 2f4f4a3
+	if ((unsigned)st.st_blksize > bufsize) {
cvsdist 2f4f4a3
 		if (buf)
cvsdist 2f4f4a3
 			(void) free(buf);
cvsdist 2f4f4a3
 		buf = malloc((unsigned)st.st_blksize);
cvsdist 2f4f4a3
diff -urN netkit-ftp-0.17-pre20000412/ftp/main.c netkit-ftp-0.17-pre20000412.new/ftp/main.c
cvsdist 2f4f4a3
--- netkit-ftp-0.17-pre20000412/ftp/main.c	Sat Oct  2 15:25:23 1999
cvsdist 2f4f4a3
+++ netkit-ftp-0.17-pre20000412.new/ftp/main.c	Wed Aug 16 13:58:57 2000
cvsdist 2f4f4a3
@@ -87,7 +87,7 @@
cvsdist 2f4f4a3
 usage(void)
cvsdist 2f4f4a3
 {
cvsdist 2f4f4a3
 	printf("\n\tUsage: { ftp | pftp } [-pinegvtd] [hostname]\n");
cvsdist 2f4f4a3
-	printf("\t   -p: enable passive mode (default for pftp)\n");
cvsdist 2f4f4a3
+	printf("\t   -p: enable passive mode (default for ftp and pftp)\n");
cvsdist 2f4f4a3
 	printf("\t   -i: turn off prompting during mget\n");
cvsdist 2f4f4a3
 	printf("\t   -n: inhibit auto-login\n");
cvsdist 2f4f4a3
 	printf("\t   -e: disable readline support, if present\n");
cvsdist 2f4f4a3
@@ -118,7 +118,7 @@
cvsdist 2f4f4a3
 	doglob = 1;
cvsdist 2f4f4a3
 	interactive = 1;
cvsdist 2f4f4a3
 	autologin = 1;
cvsdist 2f4f4a3
-	passivemode = 0;
cvsdist 2f4f4a3
+	passivemode = 1;
cvsdist 2f4f4a3
 
cvsdist 2f4f4a3
         cp = strrchr(argv[0], '/');
cvsdist 2f4f4a3
         cp = (cp == NULL) ? argv[0] : cp+1;