/*
* MODULE IDENTIFICATION:
* $Header$
- * Copyright 1987 MIT Project Athena.
+ * Copyright 1987, 1988 by the Massachusetts Institute of Technology.
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
* DESCRIPTION:
* This code handles the actual distribution of data files
* to servers in the SMS server-update program.
* sms_update_server
*/
+#include <mit-copyright.h>
#include <stdio.h>
#include <strings.h>
#include <gdb.h>
#include <krb.h>
extern char *malloc();
-extern int errno;
+extern int errno, dbg;
static char buf[BUFSIZ];
static int code;
* RETURN VALUE:
* void
* SIDE EFFECTS:
- * Initializes GDB library and SMSU error table.
+ * Initializes GDB library.
* PROBLEMS:
*
*/
if (!initialized) {
gdb_init();
- init_smsU_err_tbl();
initialized++;
}
}
execute(path)
char *path;
{
- union wait response;
+ int response;
STRING data;
register int code;
code = receive_object(conn, (char *)&response, INTEGER_T);
if (code)
return(connection_errno(conn));
- if (response.w_retcode) {
-/****************************************************************
- * The following line is there because the current update servers
- * don't return the correct error code when an update fails. Remove
- * this line when they are fixed. -mar 7/26/88
- ****************************************************************/
- return(SMS_INTERNAL);
-/* return(response.w_retcode); */
- }
+ if (dbg & DBG_TRACE)
+ com_err(whoami, response, "execute returned %d", response);
+ if (response)
+ return(response);
return(SMS_SUCCESS);
}