From 5eac0535f171ebb13b4449db5abcf503d540c7b5 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 19 Feb 1998 15:51:34 +0000 Subject: Handle "account" token. svn path=/trunk/; revision=1654 --- netrc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'netrc.c') diff --git a/netrc.c b/netrc.c index 44339590..e88b78c7 100644 --- a/netrc.c +++ b/netrc.c @@ -239,9 +239,6 @@ parse_netrc (file) else { /* Fetch the next token. */ - if (!strcmp (tok, "account")) - last_token = tok_account; - if (!strcmp (tok, "default")) { maybe_add_to_list (¤t, &retval); @@ -261,6 +258,9 @@ parse_netrc (file) else if (!strcmp (tok, "password")) last_token = tok_password; + else if (!strcmp (tok, "account")) + last_token = tok_account; + else { fprintf (stderr, "%s:%d: warning: unknown token \"%s\"\n", -- cgit v1.2.3