Home | History | Annotate | Download | only in rdist

Lines Matching refs:rhost

126 doarrow(char **filev, struct namelist *xfiles, char *rhost,
141 (long)files, rhost, (long)cmds);
151 printf("updating host %s\n", rhost);
156 if (!makeconn(rhost))
194 notify(tempfile, rhost, sc->sc_args, 0);
208 * Create a connection to the rdist server on the machine rhost.
211 makeconn(char *rhost)
221 printf("makeconn(%s)\n", rhost);
224 if (strcmp(cur_host, rhost) == 0)
228 cur_host = rhost;
229 cp = strchr(rhost, '@');
234 if (strlcpy(tuser, rhost, sizeof(tuser)) >= sizeof(tuser)) {
239 rhost = cp + 1;
248 printf("updating host %s\n", rhost);
266 rem = rcmd(&rhost, port, user, ruser, buf, &remerr);
521 * rhost == NULL if we are mailing a list of changes compared to at time
525 notify(char *file, char *rhost, struct namelist *to, time_t lmod)
530 char *cp, *nrhost = rhost;
535 /* strip any leading user@ prefix from rhost */
536 if (rhost && (cp = strchr(rhost, '@')) != NULL)
541 if (rhost)
576 if (!any('@', to->n_name) && rhost != NULL)
582 if (!any('@', to->n_name) && rhost != NULL)
589 if (rhost != NULL)
591 host, rhost);