source:
npl/system/netkit-ftp/patches/01-netkit-ftp-0.17-pre20000412.pasv-security.patch
@
d849d83
Last change on this file since d849d83 was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 2.0 KB |
-
netkit-ftp-0.17-pre20000412
diff -urN netkit-ftp-0.17-pre20000412/ftp/ftp.1 netkit-ftp-0.17-pre20000412.new/ftp/ftp.1
old new 62 62 Use passive mode for data transfers. Allows use of ftp in environments 63 63 where a firewall prevents connections from the outside world back to 64 64 the client machine. Requires that the ftp server support the PASV 65 command. This is the default if invoked as 66 .Nm pftp. 65 command. This is the default now for 66 .Nm all 67 clients (ftp and pftp) due to security concerns using the PORT transfer mode. 68 The flag is kept for compatibility only and has no effect anymore. 67 69 .It Fl i 68 70 Turns off interactive prompting during multiple file transfers. 69 71 .It Fl n -
netkit-ftp-0.17-pre20000412
diff -urN netkit-ftp-0.17-pre20000412/ftp/ftp.c netkit-ftp-0.17-pre20000412.new/ftp/ftp.c
old new 883 883 } 884 884 if (fstat(fileno(fout), &st) < 0 || st.st_blksize == 0) 885 885 st.st_blksize = BUFSIZ; 886 if ( st.st_blksize > bufsize) {886 if ((unsigned)st.st_blksize > bufsize) { 887 887 if (buf) 888 888 (void) free(buf); 889 889 buf = malloc((unsigned)st.st_blksize); -
netkit-ftp-0.17-pre20000412
diff -urN netkit-ftp-0.17-pre20000412/ftp/main.c netkit-ftp-0.17-pre20000412.new/ftp/main.c
old new 87 87 usage(void) 88 88 { 89 89 printf("\n\tUsage: { ftp | pftp } [-pinegvtd] [hostname]\n"); 90 printf("\t -p: enable passive mode (default for pftp)\n");90 printf("\t -p: enable passive mode (default for ftp and pftp)\n"); 91 91 printf("\t -i: turn off prompting during mget\n"); 92 92 printf("\t -n: inhibit auto-login\n"); 93 93 printf("\t -e: disable readline support, if present\n"); … … 118 118 doglob = 1; 119 119 interactive = 1; 120 120 autologin = 1; 121 passivemode = 0;121 passivemode = 1; 122 122 123 123 cp = strrchr(argv[0], '/'); 124 124 cp = (cp == NULL) ? argv[0] : cp+1;
Note: See TracBrowser
for help on using the repository browser.