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

patch to prevent truncation when forwarding a message to a tty #50

Closed
wants to merge 1 commit into from

Conversation

meta-ed
Copy link
Contributor

@meta-ed meta-ed commented May 13, 2022

This is a patch to fprintlog_write() that eliminates a redundant skip past the PRI field of the iov when passing it to wallmsg().

Because wallmsg() assumes the PRI field is the first field present in the iov, it wrongly truncates the hostname and part or all of the message body before writing on the tty.

and causes message truncation. The <PRI> field is skipped within
wallmsg() itself.
@troglobit
Copy link
Owner

Thanks! Merged manually to master with some minor fixup to the commit message. For future reference see https://commit.style/

@troglobit troglobit closed this May 14, 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