This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH COMMITTED] sunrpc: In key_call_keyenvoy, use int status instead of union wait
- From: Florian Weimer <fweimer at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 8 Mar 2016 10:35:30 +0100
- Subject: [PATCH COMMITTED] sunrpc: In key_call_keyenvoy, use int status instead of union wait
- Authentication-results: sourceware.org; auth=none
Compile-tested as suggested by Roland.
Florian
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.
diff --git a/sunrpc/key_call.c b/sunrpc/key_call.c
index 7ecf6fb..a0d9a2a 100644
--- a/sunrpc/key_call.c
+++ b/sunrpc/key_call.c
@@ -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;