if (!rsh && sp == NULL) {
sp = getservbyname(dokerberos ? "kshell" : "shell", "tcp");
if (!rsh && sp == NULL) {
sp = getservbyname(dokerberos ? "kshell" : "shell", "tcp");
- if (sp == NULL)
- errx(1, "%s/tcp: unknown service",
- dokerberos ? "kshell" : "shell");
+ if (sp == NULL) {
+ if (abortifconnerr) {
+ errx(1, "%s/tcp: unknown service", dokerberos ? "kshell" : "shell");
+ } else {
+ msg("%s/tcp: unknown service", dokerberos ? "kshell" : "shell");
+ return 0;
+ }
+ }
(void)snprintf(line, sizeof (line), "R%u\n", (unsigned)count);
n = rmtcall("read", line);
(void)snprintf(line, sizeof (line), "R%u\n", (unsigned)count);
n = rmtcall("read", line);
for (i = 0; i < n; i += cc) {
cc = read(fromrmtape, buf+i, n - i);
if (cc <= 0)
for (i = 0; i < n; i += cc) {
cc = read(fromrmtape, buf+i, n - i);
if (cc <= 0)