Pass a single I/O log file name in command_details instead of
separate dir + file parameters.
This commit is contained in:
@@ -513,11 +513,8 @@ sudoers_policy_main(int argc, char * const argv[], int pwflag, char *env_add[],
|
||||
if (def_iolog_file && def_iolog_dir) {
|
||||
if (strstr(def_iolog_file, "%{seq}") != NULL) /* XXX - inline? */
|
||||
io_nextid(def_iolog_dir, sudo_user.sessid);
|
||||
command_info[info_len++] = expand_iolog_path("iolog_path=", def_iolog_dir, def_iolog_file);
|
||||
}
|
||||
if (def_iolog_file)
|
||||
command_info[info_len++] = expand_iolog_path("iolog_file=", def_iolog_file);
|
||||
if (def_iolog_dir)
|
||||
command_info[info_len++] = expand_iolog_path("iolog_dir=", def_iolog_dir);
|
||||
if (def_log_input) {
|
||||
command_info[info_len++] = estrdup("iolog_stdin=true");
|
||||
command_info[info_len++] = estrdup("iolog_ttyin=true");
|
||||
|
Reference in New Issue
Block a user