#ifndef lint
static char *rcsid_auth_001_c = "$Header$";
-#endif lint
+#endif
#include <mit-copyright.h>
#include <stdio.h>
extern int have_authorization;
extern struct sockaddr_in *client_address();
extern CONNECTION conn;
-int code;
+extern int code;
extern char *PrincipalHostname();
static char service[] = "rcmd";
static char master[] = "sms";
#ifndef lint
static char *rcsid_checksum_c = "$Header$";
-#endif lint
+#endif
#include <mit-copyright.h>
#include <stdio.h>
#include <mit-copyright.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <gdb.h>
#include <sys/param.h>
#include <moira_site.h>
#include <krb.h>
-extern char *malloc();
extern int errno, dbg;
static char buf[BUFSIZ];
#ifndef lint
static char *rcsid_exec_002_c = "$Header$";
-#endif lint
+#endif
#include <mit-copyright.h>
#include <stdio.h>
#include "update.h"
extern CONNECTION conn;
-extern int code, errno, uid;
+extern int code, errno, uid, log_priority;
extern char *whoami;
#if defined(vax) || defined(ibm032)
#ifndef lint
static char *rcsid_get_file_c = "$Header$";
-#endif lint
+#endif
#include <mit-copyright.h>
#include <stdio.h>
#endif /* MIN */
extern CONNECTION conn;
-char buf[BUFSIZ];
+extern char buf[BUFSIZ];
extern int code, errno, uid;
+extern char *whoami;
extern int have_authorization, have_file, done;
extern C_Block session;
static des_key_schedule sched;
static des_cblock ivec;
-int get_block();
+static int get_block();
/*
* get_file()
#ifndef lint
static char *rcsid_inst_001_c = "$Header$";
-#endif lint
+#endif
#include <mit-copyright.h>
#include <stdio.h>
#ifndef lint
static char *rcsid_log_c = "$Header$";
-#endif lint
+#endif
/*
* handle logging for dcm and update server
#include <mit-copyright.h>
#include <stdio.h>
#include "com_err.h"
+#ifdef __STDC__
+#include <stdarg.h>
+#else
#include <varargs.h>
-#include "update.h"
-#include <krb.h>
-
-#ifndef __STDC__
#define const
#endif
+#include "update.h"
+#include <krb.h>
#ifdef use_syslog
#include <syslog.h>
LOG_ERR
};
#endif
-int log_priority;
+extern int log_priority;
extern char *whoami;
void mr_update_com_err_hook(whoami, code, fmt, args)
#ifndef lint
static char *rcsid_send_file_c = "$Header$";
-#endif lint
+#endif
#include <mit-copyright.h>
#include <stdio.h>
#ifndef lint
static char *rcsid_ticket_c = "$Header$";
-#endif lint
+#endif
#include <mit-copyright.h>
#include <stdio.h>
#include <com_err.h>
#include <krb_et.h>
+extern char *whoami;
+
/* too bad we can't set the pathname easily */
static char *srvtab = KEYFILE; /* default == /etc/srvtab */
static char realm[REALM_SZ];
pass = 1;
init();
- strcpy(phost, krb_get_phost(host));
+ strcpy(phost, (char*)krb_get_phost(host));
try_it:
code = krb_mk_req(ticket, service, phost, realm, (long)0);
if (code) {
#ifndef lint
static char *rcsid_dispatch_c = "$Header$";
-#endif lint
+#endif
#include <mit-copyright.h>
#include <stdio.h>
+#include <stdlib.h>
#include <gdb.h>
#include <errno.h>
#include <string.h>
extern char *config_lookup();
extern void gdb_debug();
-extern int abort(), errno;
-#ifndef sun
-extern int exit();
-#endif
+extern int errno;
extern STRING instructions;
CONNECTION conn;
-int code;
+int code, log_priority;
char *whoami;
int have_authorization = 0;
{ "XFER_003", xfer_003 },
{ "EXEC_002", exec_002 },
{ "quit", quit },
- { (char *)NULL, abort }
+ { (char *)NULL, (int (*)())abort }
};
/* general scratch space -- useful for building error messages et al... */
(void) send_ok();
sever_connection(conn);
mr_log_info("Closing connection.");
- return(exit(0));
+ exit(0);
}
CONNECTION conn;
char *whoami;
-
main(argc, argv)
int argc;
char **argv;
exit(1);
}
-static
send_auth(host_name)
char *host_name;
{
return(MR_SUCCESS);
}
-static
execute(path)
char *path;
{
#ifndef lint
static char *rcsid_xfer_002_c = "$Header$";
-#endif lint
+#endif
#include <mit-copyright.h>
#include <stdio.h>
#include <moira.h>
extern CONNECTION conn;
-char buf[BUFSIZ];
+extern char buf[BUFSIZ];
extern int code, errno;
#ifndef lint
static char *rcsid_xfer_002_c = "$Header$";
-#endif lint
+#endif
#include <mit-copyright.h>
#include <stdio.h>
#include <moira.h>
extern CONNECTION conn;
-char buf[BUFSIZ];
+extern char buf[BUFSIZ];
extern int code, errno;