[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] ftp -p(assive) compatibility
From: |
Alfred M. Szmidt |
Subject: |
Re: [bug-inetutils] ftp -p(assive) compatibility |
Date: |
Thu, 04 Feb 2010 08:32:03 -0500 |
All the other ftp programs I've seen support -p to mean switch into
passive mode by default. This is very useful, since so many places
(such as fencepost :() are configured to only work with passive
mode.
Printing a command line prompt when not on a tty seems very obscure
by comparison. How about leaving that as --prompt only, and
changing -p (aka --passive, I suppose) to do the passive mode
thing?
There you go, just for you. :-)
2010-02-04 Alfred M. Szmidt <address@hidden>
New options --active and --passive.
* ftp/main.c (OPT_PROMPT): New enum.
(argp_options) <prompt>: Removed short option (-p). <active>: New
option; uses -A as short option. <passive>: New option; uses -p
as short option.
(parse_opt): Handle --active and --passive, updated --prompt
accordingly.
(main) <passivemode>: Set initial value before argument parsing.