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