aboutsummaryrefslogtreecommitdiffstats
path: root/netrc.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-01-03 22:11:06 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-01-03 22:11:06 +0000
commit2009cad4105e3fb89716f901728c2836ecfa5f8e (patch)
treecb35efab2c37de51afdb78f7b88ed9a71d037678 /netrc.c
parentad22fdfceb2e4657bf7069b5139c82408f1565c4 (diff)
downloadfetchmail-2009cad4105e3fb89716f901728c2836ecfa5f8e.tar.gz
fetchmail-2009cad4105e3fb89716f901728c2836ecfa5f8e.tar.bz2
fetchmail-2009cad4105e3fb89716f901728c2836ecfa5f8e.zip
Accept 'passwd' as a synonym for 'password' in .netrc files.
svn path=/trunk/; revision=2316
Diffstat (limited to 'netrc.c')
-rw-r--r--netrc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/netrc.c b/netrc.c
index 7fda4e58..c3b3dad4 100644
--- a/netrc.c
+++ b/netrc.c
@@ -245,6 +245,9 @@ parse_netrc (file)
else if (!strcmp (tok, "password"))
last_token = tok_password;
+ else if (!strcmp (tok, "passwd"))
+ last_token = tok_password;
+
else if (!strcmp (tok, "account"))
last_token = tok_account;