2
0
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:
Todd C. Miller
2010-05-24 14:30:54 -04:00
parent 79cb53c62c
commit 60e0e496ef
3 changed files with 4 additions and 2 deletions

View File

@@ -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);