a = *newentry;
l = *list;
- /* We need an account name in order to add the entry to the list. */
- if (a && ! a->account)
+ /* We need a login name in order to add the entry to the list. */
+ if (a && ! a->login)
{
/* Free any allocated space. */
if (a->host)
{
case tok_login:
if (current)
- current->account = (char *) xstrdup (tok);
+ current->login = (char *) xstrdup (tok);
else
premature_token = "login";
break;
/* Return the netrc entry from LIST corresponding to HOST. NULL is
returned if no such entry exists. */
netrc_entry *
-search_netrc (list, host, account)
+search_netrc (list, host, login)
netrc_entry *list;
- char *host, *account;
+ char *host, *login;
{
/* Look for the HOST in LIST. */
while (list)
{
if (list->host && !strcmp(list->host, host))
- if (!list->account || !strcmp(list->account, account))
+ if (!list->login || !strcmp(list->login, login))
/* We found a matching entry. */
break;
char **argv;
{
struct stat sb;
- char *program_name, *file, *host, *account;
+ char *program_name, *file, *host, *login;
netrc_entry *head, *a;
program_name = argv[0];
file = argv[1];
host = argv[2];
- account = argv[3];
+ login = argv[3];
if (stat (file, &sb))
{
exit (1);
}
- if (host && account)
+ if (host && login)
{
int i, status;
status = 0;
- printf("Host: %s, Account: %s\n", host, account);
+ printf("Host: %s, Login: %s\n", host, login);
- a = search_netrc (head, host, account);
+ a = search_netrc (head, host, login);
if (a)
{
/* Print out the password (if any). */
fputc (' ', stdout);
- /* Print the account name. */
- fputs (a->account, stdout);
+ /* Print the login name. */
+ fputs (a->login, stdout);
if (a->password)
{