]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sunrpc: In key_call_keyenvoy, use int status instead of union wait
authorFlorian Weimer <fweimer@redhat.com>
Tue, 8 Mar 2016 09:04:23 +0000 (10:04 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 8 Mar 2016 09:04:24 +0000 (10:04 +0100)
ChangeLog
sunrpc/key_call.c

index 0fb4ebdfb4a483ef89edeee8894883db73de3617..2a7abbc8a6494651a1a757365f7ee9c23f9cc4d0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-03-08  Florian Weimer  <fweimer@redhat.com>
+
+       * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
+       union wait.  Report any non-zero exit status as error.
+
 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
        * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
index 7ecf6fbaa1d969b3602c7c2f54cfc1f1754ae9ca..a0d9a2a0d157288a419b044a2d24816266d01417 100644 (file)
@@ -304,7 +304,7 @@ key_call_keyenvoy (u_long proc, xdrproc_t xdr_arg, char *arg,
   FILE *fargs;
   FILE *frslt;
   sigset_t oldmask, mask;
-  union wait status;
+  int status;
   int pid;
   int success;
   uid_t ruid;
@@ -362,7 +362,7 @@ key_call_keyenvoy (u_long proc, xdrproc_t xdr_arg, char *arg,
        success = 0;
     }
   else
-    if (status.w_retcode)
+    if (status != 0)
       {
        debug ("wait4 1");
        success = 0;