2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 22:35:10 +00:00

No longer need to pass exit params to eventlog_exit(), use struct eventlog.

Now that struct eventlog includes the exit parameters we can simplify
how eventlog_exit() is called.
This commit is contained in:
Todd C. Miller
2021-10-19 08:58:34 -06:00
parent d415624ffc
commit bddf03fe45
4 changed files with 62 additions and 54 deletions

View File

@@ -575,8 +575,11 @@ log_exit_status(int exit_status)
if (!def_log_exit_status)
SET(evl_flags, EVLOG_MAIL_ONLY);
}
if (!eventlog_exit(&evlog, evl_flags, &run_time, ecode, signame,
dumped_core))
evlog.run_time = run_time;
evlog.exit_value = ecode;
evlog.signal_name = signame;
evlog.dumped_core = dumped_core;
if (!eventlog_exit(&evlog, evl_flags))
ret = false;
sudoers_setlocale(oldlocale, NULL);