We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 707220f commit 04ea802Copy full SHA for 04ea802
src/auditd-event.c
@@ -448,11 +448,17 @@ static const char *format_enrich(const struct audit_reply *rep)
448
if (len <= MIN_SPACE_LEFT)
449
return format_buf;
450
451
+ // Add carriage return so auparse sees it correctly
452
+ format_buf[mlen] = 0x0A;
453
+ format_buf[mlen+1] = 0;
454
+
455
// init auparse
456
if (au == NULL) {
457
au = auparse_init(AUSOURCE_BUFFER, format_buf);
- if (au == NULL)
458
+ if (au == NULL) {
459
+ format_buf[mlen] = 0; //remove newline
460
461
+ }
462
463
auparse_set_escape_mode(au, AUPARSE_ESC_RAW);
464
auparse_set_eoe_timeout(config->end_of_event_timeout);
0 commit comments