aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-07-25 12:46:48 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-07-25 12:46:48 +0000
commitf7aef23b0c18a1ee4724f9e10984427cdee07c5d (patch)
treee3ebb88d46008b4c42dd9309849928c89aca9620
parent9a8c11c62a4428be71cd854a6a804f055b8f7cbf (diff)
downloadfetchmail-f7aef23b0c18a1ee4724f9e10984427cdee07c5d.tar.gz
fetchmail-f7aef23b0c18a1ee4724f9e10984427cdee07c5d.tar.bz2
fetchmail-f7aef23b0c18a1ee4724f9e10984427cdee07c5d.zip
Allow either `user' or `login'.
svn path=/trunk/; revision=1182
-rw-r--r--NEWS1
-rw-r--r--netrc.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index d05a25a3..059211dd 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,7 @@
fetchmail 4.0.3 ()
* Replace vsprintf with vnsprintf to avoid buffer-overrun screws.
* Added via option to make ssh configuration cleaner.
+* Allow either `login' or `user' in .netrc files.
There are 257 people on the fetchmail-friends list.
diff --git a/netrc.c b/netrc.c
index b95d134d..635228a7 100644
--- a/netrc.c
+++ b/netrc.c
@@ -220,6 +220,9 @@ parse_netrc (file)
else if (!strcmp (tok, "login"))
last_token = tok_login;
+ else if (!strcmp (tok, "user"))
+ last_token = tok_login;
+
else if (!strcmp (tok, "macdef"))
last_token = tok_macdef;