exit(1);
}
- code = send_auth(conn, host);
+ code = mr_send_krb5_auth(conn, host);
+ if (code)
+ code = mr_send_auth(conn, host);
if (code)
com_err(whoami, code, "attempting authorization");
file = argv[++i];
rfile = argv[++i];
fprintf(stderr, "Sending file %s to %s as %s\n", file, host, rfile);
- send_file(conn, file, rfile, 0);
+ mr_send_file(conn, file, rfile, 0);
break;
case 'S':
if (i + 2 >= argc)
rfile = argv[++i];
fprintf(stderr, "Sending (encrypted) file %s to %s as %s\n",
file, host, rfile);
- send_file(conn, file, rfile, 1);
+ mr_send_file(conn, file, rfile, 1);
break;
case 'i':
if (i + 1 >= argc)
mktemp(ibuf);
fprintf(stderr, "Sending instructions %s to %s as %s\n",
file, host, ibuf);
- send_file(conn, file, ibuf, 0);
+ mr_send_file(conn, file, ibuf, 0);
break;
case 'I':
if (i + 2 >= argc)
strcpy(ibuf, rfile);
fprintf(stderr, "Sending instructions %s to %s as %s\n",
file, host, ibuf);
- send_file(conn, file, ibuf, 0);
+ mr_send_file(conn, file, ibuf, 0);
break;
case 'x':
if (!ibuf)
usage();
}
fprintf(stderr, "Executing instructions %s on %s\n", ibuf, host);
- code = execute(conn, ibuf);
+ code = mr_execute(conn, ibuf);
if (code)
com_err(whoami, code, "executing");
break;
usage();
file = argv[++i];
fprintf(stderr, "Executing instructions %s on %s\n", file, host);
- code = execute(conn, file);
+ code = mr_execute(conn, file);
if (code)
com_err(whoami, code, "executing");
break;
usage();
}
}
- send_quit(conn);
+ mr_send_quit(conn);
close(conn);
exit(code);
}