man 5 newsyslog.d when discussing the size option the text states "...the log file will be trimmed as described above. If this field contains an asterisk(`*'), the log file will not be trimmed based on size." Nothing prior to that statement addresses trimming so it's unclear as to what the asterisk is meant to do. I suspect it was meant to be "rotated" rather than "trimmed". This would read more clearlym, "...the log file will be rotated. If this field contains an asterisk (`*'), the log file will not be rotated based on size."
Sorry - that was sloppy - should be "man 5 newsyslog.conf"
I checked the manpage and the code. The word "trim" appears several times in both. I agree with the the OP that trim seems off since since this is about rotation and not trimming (cutting off) the files to a specific size. Question now is: Should be just modify manpage and comments in C file or code itself since none of the code seems to be "public".
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=e0b22342f52b22b1762b09ab16bbc520cf0f2882 commit e0b22342f52b22b1762b09ab16bbc520cf0f2882 Author: Kit Dallege <xaum.io@gmail.com> AuthorDate: 2026-03-27 04:25:35 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2026-04-16 06:05:20 +0000 newsyslog.conf(5): use "rotated" instead of "trimmed" The man page used "trimmed" to describe log rotation, which is misleading as it suggests the file is truncated to a specific size rather than being rotated (renamed and a new file created). Replace all instances of "trimmed" with "rotated" to match the actual behavior and the terminology used elsewhere in the page. PR: 278671 Signed-off-by: Kit Dallege <xaum.io@gmail.com> Reviewed by: imp,ziaee Pull Request: https://github.com/freebsd/freebsd-src/pull/2099 usr.sbin/newsyslog/newsyslog.conf.5 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Anything left to do or can we close this?
^Triage: apparently already fixed.
Can this be picked to stable branches? The fix is simple yet reasonable for better manpages.