source: npl/system/netkit-ftp/patches/01-netkit-ftp-0.17-pre20000412.pasv-security.patch @ 7c410f9

Last change on this file since 7c410f9 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
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  
    6262Use passive mode for data transfers. Allows use of ftp in environments
    6363where a firewall prevents connections from the outside world back to
    6464the client machine. Requires that the ftp server support the PASV
    65 command. This is the default if invoked as
    66 .Nm pftp.
     65command. This is the default now for
     66.Nm all
     67clients (ftp and pftp) due to security concerns using the PORT transfer mode.
     68The flag is kept for compatibility only and has no effect anymore.
    6769.It Fl i
    6870Turns off interactive prompting during multiple file transfers.
    6971.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  
    883883        }
    884884        if (fstat(fileno(fout), &st) < 0 || st.st_blksize == 0)
    885885                st.st_blksize = BUFSIZ;
    886         if (st.st_blksize > bufsize) {
     886        if ((unsigned)st.st_blksize > bufsize) {
    887887                if (buf)
    888888                        (void) free(buf);
    889889                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  
    8787usage(void)
    8888{
    8989        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");
    9191        printf("\t   -i: turn off prompting during mget\n");
    9292        printf("\t   -n: inhibit auto-login\n");
    9393        printf("\t   -e: disable readline support, if present\n");
     
    118118        doglob = 1;
    119119        interactive = 1;
    120120        autologin = 1;
    121         passivemode = 0;
     121        passivemode = 1;
    122122
    123123        cp = strrchr(argv[0], '/');
    124124        cp = (cp == NULL) ? argv[0] : cp+1;
Note: See TracBrowser for help on using the repository browser.