source: npl/system/netkit-ftp/patches/29-netkit-ftp-0.17-active-mode-option.patch @ 94a6f37

Last change on this file since 94a6f37 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: 1.3 KB
  • netkit-ftp-0.17/ftp/main.c

    old new static 
    8787void
    8888usage(void)
    8989{
    90         printf("\n\tUsage: { ftp | pftp } [-pinegvtd] [hostname]\n");
     90        printf("\n\tUsage: { ftp | pftp } [-Apinegvtd] [hostname]\n");
     91        printf("\t   -A: enable active mode\n");
    9192        printf("\t   -p: enable passive mode (default for ftp and pftp)\n");
    9293        printf("\t   -i: turn off prompting during mget\n");
    9394        printf("\t   -n: inhibit auto-login\n");
    main(volatile int argc, char **volatile 
    166167                                passivemode = 1;
    167168                                break;
    168169
     170                        case 'A':
     171                                passivemode = 0;
     172                                break;
     173
    169174                        case 'g':
    170175                                doglob = 0;
    171176                                break;
  • netkit-ftp-0.17/ftp/ftp.1

    old new  
    5858Options may be specified at the command line, or to the
    5959command interpreter.
    6060.Bl -tag -width flag
     61.It Fl A
     62Use active mode for data transfers. This is useful for transmissions
     63to servers which do not support passive connections (for whatever reason.)
    6164.It Fl p
    6265Use passive mode for data transfers. Allows use of ftp in environments
    6366where a firewall prevents connections from the outside world back to
Note: See TracBrowser for help on using the repository browser.