mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Add extra out parameter to expand_iolog_path() to allow the caller
to split the path into dir and file components if needed.
This commit is contained in:
@@ -513,7 +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);
|
||||
command_info[info_len++] = expand_iolog_path("iolog_path=",
|
||||
def_iolog_dir, def_iolog_file, NULL);
|
||||
}
|
||||
if (def_log_input) {
|
||||
command_info[info_len++] = estrdup("iolog_stdin=true");
|
||||
|
Reference in New Issue
Block a user