{
if (ctl->active && !(implicitmode && ctl->server.skip)&&!ctl->password)
{
- if (ctl->server.preauthenticate > A_PASSWORD)
+ if (ctl->server.preauthenticate > A_PASSWORD || ctl->server.protocol < P_ETRN)
/* Server won't care what the password is, but there
must be some non-null string here. */
ctl->password = ctl->remotename;
{
if (ctl->active && !(implicitmode && ctl->server.skip)
&& ctl->server.preauthenticate <= A_PASSWORD
+ && ctl->server.protocol < P_ETRN
&& !ctl->password)
{
if (!isatty(0))
if (ctl->server.skip || outlevel >= O_VERBOSE)
printf(_(" This host %s be queried when no host is specified.\n"),
ctl->server.skip ? _("will not") : _("will"));
- if (ctl->server.preauthenticate <= A_PASSWORD)
+ if (ctl->server.preauthenticate <= A_PASSWORD && ctl->server.protocol < P_ETRN)
{
if (!ctl->password)
printf(_(" Password will be prompted for.\n"));