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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user