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

Add set_logname option so users can turn off setting of LOGNAME/USER

environment variables.
This commit is contained in:
Todd C. Miller
2000-03-22 23:40:09 +00:00
parent db2c555453
commit f7ed0b0df3
2 changed files with 26 additions and 21 deletions

View File

@@ -196,6 +196,9 @@ struct sudo_defs_types sudo_defs_table[] = {
}, {
"use_loginclass", T_FLAG,
"Apply defaults in the target user's login class if there is one"
}, {
"set_logname", T_FLAG,
"Set the LOGNAME and USER environment variables"
}, {
"loglinelen", T_INT|T_BOOL,
"Length at which to wrap log file lines (0 for no wrap): %d"
@@ -548,6 +551,7 @@ init_defaults()
#ifdef ENV_EDITOR
def_flag(I_ENV_EDITOR) = TRUE;
#endif
def_flag(I_LOGNAME) = TRUE;
/* Syslog options need special care since they both strings and ints */
#if (LOGGING & SLOG_SYSLOG)