From f7aef23b0c18a1ee4724f9e10984427cdee07c5d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 25 Jul 1997 12:46:48 +0000 Subject: Allow either `user' or `login'. svn path=/trunk/; revision=1182 --- NEWS | 1 + netrc.c | 3 +++ 2 files changed, 4 insertions(+) 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; -- cgit v1.2.3