Set use_pty=true in command details when use_pty is set in sudoers.
From Ludwig Nussel
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user