We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ff27d2 commit b946acfCopy full SHA for b946acf
1 file changed
plugins/sudoers/audit.c
@@ -326,10 +326,8 @@ log_server_exit(int status_type, int status)
326
int exit_status = 0, error = 0;
327
328
if (status_type == SUDO_PLUGIN_WAIT_STATUS) {
329
- if (WIFEXITED(status))
330
- exit_status = WEXITSTATUS(status);
331
- else
332
- exit_status = WTERMSIG(status) | 128;
+ /* Status from wait(2) et al. */
+ exit_status = status;
333
} else {
334
/* Must be errno. */
335
error = status;
0 commit comments