2
0
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:
Todd C. Miller
2024-03-09 11:42:07 -07:00
parent 46e31a74d7
commit b6175b78ad
5 changed files with 7 additions and 10 deletions

View File

@@ -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 {