[Bug 292285] FreeBSD stat -h is broken from POSIX point of view

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 08 Jan 2026 21:12:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292285

            Bug ID: 292285
           Summary: FreeBSD stat -h is broken from POSIX point of view
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: aurelien.couderc2002@gmail.com

FreeBSD stat -h is broken from POSIX point of view.

POSIX utilities must observe a maximum line lengths, while FreeBSD stat -h will
produce output far longer than POSIX2_LINE_MAX if there are many holes in a
sparse file.

This will break (shell) scripts if a sparse file has many holes.

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