Set use_pty=true in command details when use_pty is set in sudoers.

From Ludwig Nussel
This commit is contained in:
Todd C. Miller
2011-06-22 10:06:35 -04:00
parent 2bd874febc
commit 39be82e32f
3 changed files with 4 additions and 0 deletions

View File

@@ -651,6 +651,8 @@ sudoers_policy_main(int argc, char * const argv[], int pwflag, char *env_add[],
command_info[info_len++] = fmt_string("noexec_file", def_noexec_file);
if (def_set_utmp)
command_info[info_len++] = estrdup("set_utmp=true");
if (def_use_pty)
command_info[info_len++] = estrdup("use_pty=true");
if (def_utmp_runas)
command_info[info_len++] = fmt_string("utmp_user", runas_pw->pw_name);
#ifdef HAVE_LOGIN_CAP_H