return MR_CANT_CONNECT;
}
- code = send_auth(conn, host);
+ code = mr_send_auth(conn, host);
if (code)
{
com_err(whoami, code, "authenticating to %s", host);
sprintf(data, "%s/%s/%s", DCM_DIR, service, host);
else
sprintf(data, "%s/%s.out", DCM_DIR, service);
- code = send_file(conn, data, target, 0);
+ code = mr_send_file(conn, data, target, 0);
if (code)
com_err(whoami, code, "sending data to %s", host);
done:
- send_quit(conn);
+ mr_send_quit(conn);
close(conn);
return code;
}
return MR_CANT_CONNECT;
}
- code = send_auth(conn, host);
+ code = mr_send_auth(conn, host);
if (code)
{
com_err(whoami, code, "authenticating to %s", host);
sprintf(inst, "/tmp/moira-update.XXXXXX");
mktemp(inst);
- code = send_file(conn, script, inst, 0);
+ code = mr_send_file(conn, script, inst, 0);
if (code)
{
com_err(whoami, code, "sending instructions to %s", host);
goto done;
}
- code = execute(conn, inst);
+ code = mr_execute(conn, inst);
if (code)
com_err(whoami, code, "executing instructions on %s", host);
done:
- send_quit(conn);
+ mr_send_quit(conn);
close(conn);
return code;
}