Skip to content

Commit 584d4ab

Browse files
committed
Fix log length in default eventlog config initializer.
In c95423a, the order of the file_maxlen and syslog_maxlen elements of struct eventlog_config were moved but the corresponding initializer was not updated to match. This resulted in log files generated by sudo_logsrvd to be wrapped at 5 characters.
1 parent faee89c commit 584d4ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/eventlog/eventlog_conf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ static void eventlog_stub_close_log(int type, FILE *fp);
6464
static struct eventlog_config evl_conf = {
6565
EVLOG_NONE, /* type */
6666
EVLOG_SUDO, /* format */
67+
0, /* file_maxlen */
68+
MAXSYSLOGLEN, /* syslog_maxlen */
6769
LOG_NOTICE, /* syslog_acceptpri */
6870
LOG_ALERT, /* syslog_rejectpri */
6971
LOG_ALERT, /* syslog_alertpri */
70-
MAXSYSLOGLEN, /* syslog_maxlen */
71-
0, /* file_maxlen */
7272
ROOT_UID, /* mailuid */
7373
false, /* omit_hostname */
7474
_PATH_SUDO_LOGFILE, /* logpath */

0 commit comments

Comments
 (0)