aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;