diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-15 22:42:01 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-15 22:42:01 +0000 |
commit | af0adb779e91e884d273d987e83c9ab9011ab371 (patch) | |
tree | fe5a4bcc8675d2f2da70e202562c55232bd01ed4 | |
parent | 189eac7905db06ca19fad34fe83181081e09e6f6 (diff) | |
download | fetchmail-af0adb779e91e884d273d987e83c9ab9011ab371.tar.gz fetchmail-af0adb779e91e884d273d987e83c9ab9011ab371.tar.bz2 fetchmail-af0adb779e91e884d273d987e83c9ab9011ab371.zip |
#85938: fetchmail asks for a password when using ETRN
svn path=/trunk/; revision=3106
-rw-r--r-- | fetchmail.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fetchmail.c b/fetchmail.c index ce03fc7c..52257dbd 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -324,7 +324,7 @@ int main(int argc, char **argv) { 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; @@ -495,6 +495,7 @@ int main(int argc, char **argv) { if (ctl->active && !(implicitmode && ctl->server.skip) && ctl->server.preauthenticate <= A_PASSWORD + && ctl->server.protocol < P_ETRN && !ctl->password) { if (!isatty(0)) @@ -1559,7 +1560,7 @@ static void dump_params (struct runctl *runp, 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")); |