aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-02-19 15:51:34 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-02-19 15:51:34 +0000
commit5eac0535f171ebb13b4449db5abcf503d540c7b5 (patch)
treed72e54dd5392d329619b2e39e6f957f2884fa681
parentc3cace9c75cdf2cf544500c5d5e335010dd6e154 (diff)
downloadfetchmail-5eac0535f171ebb13b4449db5abcf503d540c7b5.tar.gz
fetchmail-5eac0535f171ebb13b4449db5abcf503d540c7b5.tar.bz2
fetchmail-5eac0535f171ebb13b4449db5abcf503d540c7b5.zip
Handle "account" token.
svn path=/trunk/; revision=1654
-rw-r--r--netrc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/netrc.c b/netrc.c
index 44339590..e88b78c7 100644
--- a/netrc.c
+++ b/netrc.c
@@ -239,9 +239,6 @@ parse_netrc (file)
else
{
/* Fetch the next token. */
- if (!strcmp (tok, "account"))
- last_token = tok_account;
-
if (!strcmp (tok, "default"))
{
maybe_add_to_list (&current, &retval);
@@ -261,6 +258,9 @@ parse_netrc (file)
else if (!strcmp (tok, "password"))
last_token = tok_password;
+ else if (!strcmp (tok, "account"))
+ last_token = tok_account;
+
else
{
fprintf (stderr, "%s:%d: warning: unknown token \"%s\"\n",