/*
* 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>
execute(path)
char *path;
{
- union wait response;
+ int response;
STRING data;
register int code;
if (code)
return(connection_errno(conn));
if (dbg & DBG_TRACE)
- com_err(whoami, 0, "execute returned %x (%d)",
- response, response.w_retcode);
- 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); */
- }
+ com_err(whoami, response, "execute returned %d", response);
+ if (response)
+ return(response);
return(SMS_SUCCESS);
}