Lines Matching defs:aname
100 _ruserpass(char *host, char **aname, char **apass)
103 if (*aname == 0 || *apass == 0)
104 rnetrc(host, aname, apass);
105 if (*aname == 0) {
107 *aname = malloc(16);
110 if (read(2, *aname, 16) <= 0)
112 if ((*aname)[0] == '\n')
113 *aname = myname;
115 if (index(*aname, '\n'))
116 *index(*aname, '\n') = 0;
118 if (*aname && *apass == 0) {
119 printf("Password (%s:%s): ", host, *aname);
127 rnetrc(char *host, char **aname, char **apass)
161 if (*aname == 0) {
162 *aname = malloc(strlen(d->tokval) + 1);
163 strcpy(*aname, d->tokval);
165 if (strcmp(*aname, d->tokval))