aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-19 20:52:47 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-19 20:52:47 +0000
commite5595d4f911a74b566929394fafe47b5dbe71a28 (patch)
tree305765164ffbd357c4230b3e70dbbabd0ce33baa
parenta910746d015dc74aa702eaffe13e98a496e0a1cc (diff)
downloadfetchmail-e5595d4f911a74b566929394fafe47b5dbe71a28.tar.gz
fetchmail-e5595d4f911a74b566929394fafe47b5dbe71a28.tar.bz2
fetchmail-e5595d4f911a74b566929394fafe47b5dbe71a28.zip
Abstract out the needs-password check.
svn path=/trunk/; revision=3123
-rw-r--r--fetchmail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 6e1d6756..1a9671b3 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -1558,7 +1558,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.authenticate <= A_PASSWORD && ctl->server.protocol < P_ETRN)
+ if (!NO_PASSWORD(ctl))
{
if (!ctl->password)
printf(_(" Password will be prompted for.\n"));