Store iolog_path in struct sudo_user for use in the event log.
This commit is contained in:
@@ -265,9 +265,9 @@ format_iolog_path(void)
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* Stash pointer to the I/O log file for use when logging. */
|
||||
sudo_user.iolog_file =
|
||||
iolog_path + sizeof("iolog_path=") - 1 + strlen(dir) + 1;
|
||||
/* Stash pointer to the I/O log for the event log. */
|
||||
sudo_user.iolog_path = iolog_path + sizeof("iolog_path=") - 1;
|
||||
sudo_user.iolog_file = sudo_user.iolog_path + 1 + strlen(dir);
|
||||
|
||||
done:
|
||||
debug_return_str(iolog_path);
|
||||
|
Reference in New Issue
Block a user