Log the short version of the tty in sudoers-format logs.

This is consistent with historical practice.
This commit is contained in:
Todd C. Miller
2020-10-26 16:10:40 -06:00
parent 4416bd5977
commit 39b540ff33
2 changed files with 12 additions and 7 deletions

View File

@@ -490,8 +490,7 @@ sudoers_to_eventlog(struct eventlog *evlog)
evlog->submithost = user_host;
evlog->submituser = user_name;
/* TODO - submitgroup */
/* XXX - use ttypath for JSON logs */
evlog->ttyname = user_tty;
evlog->ttyname = user_ttypath;
evlog->argv = NewArgv;
evlog->env_add = (char **)sudo_user.env_vars;
evlog->envp = env_get();