]> andersk Git - moira.git/blobdiff - update/client.c
updated for new com_err library
[moira.git] / update / client.c
index d7960cddbaf7c9d15e4da8e1e4c27bfa6731158b..6e48a0e1cfff38cb80a197df7e57a303ea1dfb2a 100644 (file)
@@ -10,7 +10,9 @@ static char *rcsid_client2_c = "$Header$";
 /*
  * 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.
@@ -22,6 +24,7 @@ static char *rcsid_client2_c = "$Header$";
  *     sms_update_server
  */
 
+#include <mit-copyright.h>
 #include <stdio.h>
 #include <strings.h>
 #include <gdb.h>
@@ -233,7 +236,7 @@ static
 execute(path)
     char *path;
 {
-    union wait response;
+    int response;
     STRING data;
     register int code;
     
@@ -246,17 +249,9 @@ execute(path)
     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);
 }
 
This page took 0.033314 seconds and 4 git commands to generate.