SCCS-vsn: usr.bin/rdist/docmd.c 4.18
-static char *sccsid = "@(#)docmd.c 4.17 (Berkeley) 84/03/14";
+static char *sccsid = "@(#)docmd.c 4.18 (Berkeley) 84/03/19";
if (strcmp(cur_host, rhost) == 0)
return(1);
closeconn();
if (strcmp(cur_host, rhost) == 0)
return(1);
closeconn();
}
ruser = rindex(rhost, '.');
}
ruser = rindex(rhost, '.');
rem = rcmd(&rhost, IPPORT_CMDSERVER, user, ruser, buf, 0);
if (rem < 0)
return(0);
rem = rcmd(&rhost, IPPORT_CMDSERVER, user, ruser, buf, 0);
if (rem < 0)
return(0);
n = 0;
while (*cp >= '0' && *cp <= '9')
n = (n * 10) + (*cp++ - '0');
n = 0;
while (*cp >= '0' && *cp <= '9')
n = (n * 10) + (*cp++ - '0');
- if (*cp == '\0' && n == VERSION) {
- cur_host = rhost;
+ if (*cp == '\0' && n == VERSION)
}
error("connection failed: version numbers don't match\n");
}
error("connection failed: version numbers don't match\n");