Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sunrpc: In key_call_keyenvoy, use int status instead of union wait
  • Loading branch information
Florian Weimer committed Mar 8, 2016
1 parent e49b221 commit 30bcdc1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions 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
Expand Down
4 changes: 2 additions & 2 deletions sunrpc/key_call.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 30bcdc1

Please sign in to comment.