]> Pileus Git - ~andy/fetchmail/commitdiff
Accept 'passwd' as a synonym for 'password' in .netrc files.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 3 Jan 1999 22:11:06 +0000 (22:11 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 3 Jan 1999 22:11:06 +0000 (22:11 -0000)
svn path=/trunk/; revision=2316

NEWS
netrc.c

diff --git a/NEWS b/NEWS
index 89dae7f7d43bb7521c479df30e818c27c14a8032..a086c3cf356c6bb49a4e2ba775f92bc5b97a62f6 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ fetchmail-4.7.4 ():
 * Michael Warfield's IPv6 fixes.
 * Added Argentine Spanish as supported language (LC_ALL=pt_BR) from a
   po file by Javier Cohen <jkohen@tough.com>.
+* Accept 'passwd' as a synonym for 'password' in .netrc files.
 
 There are 249 people on fetchmail-friends and 335 on fetchmail-announce.
 
diff --git a/netrc.c b/netrc.c
index 7fda4e583e225873dc44cffe4e1f5224902ee971..c3b3dad49f8d3f6dd084e59edb98062a018aaa2a 100644 (file)
--- 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;