[Bug 299361] /bin/stat -h output is not parsable, is not scalable, lacks locking, has no option for listing data sections
Date: Fri, 16 Oct 2026 16:14:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299361
Dag-Erling Smørgrav <des@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |Works As Intended
Status|New |Closed
CC| |des@FreeBSD.org
--- Comment #2 from Dag-Erling Smørgrav <des@FreeBSD.org> ---
File locking is advisory. No amount of locking on stat's part will prevent
another process from modifying the file while stat is examining it.
The bottom line is that stat -h works fine for its intended purpose, there is
no general solution that will work for everybody, and if you need something
more specific then you should create your own tool tailored to your use case.
--
You are receiving this mail because:
You are the assignee for the bug.