mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-05 00:35:14 +00:00
Remove EVLOG_JSON, callers must use EVLOG_JSON_COMPACT or EVLOG_JSON_PRETTY
This commit is contained in:
@@ -1064,7 +1064,7 @@ sudoers_log_open(int type, const char *log_file)
|
||||
break;
|
||||
case EVLOG_FILE:
|
||||
/* Open log file as root, mode 0600 (cannot append to JSON). */
|
||||
if (def_log_format == json) {
|
||||
if (def_log_format == json || def_log_format == json_pretty) {
|
||||
flags = O_RDWR|O_CREAT;
|
||||
omode = "w";
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user