Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20220813-fix-parsemsg_rfc3164-RemoteAddDate #58

Conversation

douzzer
Copy link
Contributor

@douzzer douzzer commented Aug 13, 2022

syslogd.c parsemsg_rfc3164(): don't set buffer.timestamp.usec when RemoteAddDate (-T) -- fixes changes in 8f83328 that resulted in "Jan 0 00:00:00" timestamps.

check_timestamp() saw the nonzero timestamp.usec and returned without setting buffer->timestamp, leaving it with nonzero usecs and an all-zeros struct tm.

…moteAddDate

(-T) -- fixes changes in 8f83328 that resulted in "Jan 0 00:00:00" timestamps.
check_timestamp() saw the nonzero timestamp.usec and returned without setting
buffer->timestamp, leaving it with nonzero usecs and an all-zeros struct tm.
@troglobit
Copy link
Owner

Ouch, good catch and clean patch, thank you! Seems there will be two sysklogd patch releases this weekend! :-)

@troglobit troglobit merged commit 06ba111 into troglobit:master Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants