2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Store iolog_path in struct sudo_user for use in the event log.

This commit is contained in:
Todd C. Miller
2020-12-05 08:31:46 -07:00
parent fd39e2d7d6
commit 008a0e8dc1
3 changed files with 5 additions and 4 deletions

View File

@@ -655,8 +655,8 @@ sudoers_to_eventlog(struct eventlog *evlog, char * const argv[],
debug_decl(sudoers_to_eventlog, SUDOERS_DEBUG_LOGGING);
memset(evlog, 0, sizeof(*evlog));
/* TODO: iolog_path */
evlog->iolog_file = sudo_user.iolog_file;
evlog->iolog_path = sudo_user.iolog_path;
evlog->command = safe_cmnd ? safe_cmnd : (argv ? argv[0] : NULL);
evlog->cwd = user_cwd;
if (def_runchroot != NULL && strcmp(def_runchroot, "*") != 0) {