]> andersk Git - moira.git/commitdiff
fixed execute for update_server returning real exit codes.
authormar <mar>
Tue, 23 Aug 1988 11:46:12 +0000 (11:46 +0000)
committermar <mar>
Tue, 23 Aug 1988 11:46:12 +0000 (11:46 +0000)
update/client.c

index d7960cddbaf7c9d15e4da8e1e4c27bfa6731158b..5bb27a6772a1fe03267d5c7c647f1a2be455f1d6 100644 (file)
@@ -233,7 +233,7 @@ static
 execute(path)
     char *path;
 {
-    union wait response;
+    int response;
     STRING data;
     register int code;
     
@@ -246,17 +246,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.040066 seconds and 5 git commands to generate.