[Bug 268020] newsyslog(8) size condition fails on large files

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 27 Nov 2022 19:28:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268020

            Bug ID: 268020
           Summary: newsyslog(8) size condition fails on large files
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: mg@fork.pl

When logfile is large (in my case happened on 1.3TB file) newsyslog fails with
"does not exists, skipped" which is triggered by
if (ent->fsize < 0)

quick look suggests that fsize is set via sizefile() that returns int mapped to
size in kilobytes, which shouldn't overflow so not sure for the reason of
error...

-- 
You are receiving this mail because:
You are the assignee for the bug.