Bug 278671 - newsyslog.conf(5): incomplete reference regarding trimming
Summary: newsyslog.conf(5): incomplete reference regarding trimming
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Warner Losh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-30 21:32 UTC by Darren Henderson
Modified: 2026-07-17 08:39 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Henderson 2024-04-30 21:32:33 UTC
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."
Comment 1 Darren Henderson 2024-05-01 14:14:09 UTC
Sorry - that was sloppy - should be "man 5 newsyslog.conf"
Comment 2 Michael Osipov freebsd_committer freebsd_triage 2025-12-26 17:13:14 UTC
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".
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-04-16 06:07:04 UTC
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(-)
Comment 4 Benedict Reuschling freebsd_committer freebsd_triage 2026-05-03 08:49:34 UTC
Anything left to do or can we close this?
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2026-07-17 06:52:41 UTC
^Triage: apparently already fixed.
Comment 6 Michael Osipov freebsd_committer freebsd_triage 2026-07-17 08:39:11 UTC
Can this be picked to stable branches? The fix is simple yet reasonable for better manpages.