2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Allow sudoers to specify the iolog file in addition to the iolog dir.

Add escape sequence support to iolog file and dir: sequence number,
    user, group, runas_user, runas_group, hostname and command in
    addition to any escape sequence recognized by strftime(3).
This commit is contained in:
Todd C. Miller
2010-12-27 12:18:32 -05:00
parent 524021a377
commit fba58fa3f7
10 changed files with 311 additions and 80 deletions

View File

@@ -443,7 +443,8 @@ init_defaults(void)
#ifdef UMASK_OVERRIDE
def_umask_override = TRUE;
#endif
def_iolog_dir = _PATH_SUDO_IO_LOGDIR;
def_iolog_file = estrdup("%{seq}");
def_iolog_dir = estrdup(_PATH_SUDO_IO_LOGDIR);
def_sudoers_locale = estrdup("C");
def_env_reset = TRUE;
def_set_logname = TRUE;