mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
If running a command or sudoedit in transcript mode, call io_nextid()
before log_allowed() so the session id is logged.
This commit is contained in:
@@ -497,6 +497,8 @@ sudoers_policy_main(int argc, char * const argv[], int pwflag, char *env_add[],
|
||||
validate_env_vars(sudo_user.env_vars);
|
||||
}
|
||||
|
||||
if (def_transcript && (sudo_mode & (MODE_RUN | MODE_EDIT)))
|
||||
io_nextid();
|
||||
log_allowed(validated);
|
||||
if (ISSET(sudo_mode, MODE_CHECK))
|
||||
rval = display_cmnd(snl, list_pw ? list_pw : sudo_user.pw);
|
||||
|
Reference in New Issue
Block a user