mirror of
https://github.com/mirror/wget.git
synced 2025-03-14 03:40:15 +08:00
* src/netrc.c (parse_netrc_fp): Add fetchmail compatibility (user and passwd)
Reported-by: Gerald Pfeifer <gerald@pfeifer.com>
This commit is contained in:
parent
25525f8037
commit
bedeb7dc27
@ -388,7 +388,8 @@ parse_netrc_fp (const char *path, FILE *fp)
|
||||
else if (!strcmp (tok, "default"))
|
||||
maybe_add_to_list (¤t, &retval);
|
||||
|
||||
else if (!strcmp (tok, "login"))
|
||||
/* fetchmail compatibility, "user" is an alias for "login" */
|
||||
else if (!strcmp (tok, "login") || !strcmp (tok, "user"))
|
||||
last_token = tok_login;
|
||||
|
||||
else if (!strcmp (tok, "macdef"))
|
||||
@ -397,7 +398,8 @@ parse_netrc_fp (const char *path, FILE *fp)
|
||||
else if (!strcmp (tok, "machine"))
|
||||
last_token = tok_machine;
|
||||
|
||||
else if (!strcmp (tok, "password"))
|
||||
/* fetchmail compatibility, "passwd" is an alias for "password" */
|
||||
else if (!strcmp (tok, "password") || !strcmp (tok, "passwd"))
|
||||
last_token = tok_password;
|
||||
|
||||
/* GNU extensions 'port' and 'force', not operational
|
||||
|
Loading…
Reference in New Issue
Block a user