2
0
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:
Todd C. Miller
2010-12-31 09:55:40 -05:00
parent 755e3ef0ab
commit 1bb3518b33
3 changed files with 11 additions and 6 deletions

View File

@@ -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");