🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #125

[Bug 299361] /bin/stat -h output is not parsable, is not scalable, lacks locking, has no option for listing data sections

#125
From: bugzilla-noreply
Date: Fri, 16 Oct 2026 16:14
28 lines
3248 bytes
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.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-299361-227-xOHUkVS5SA@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <bug-299361-227@https.bugs.freebsd.org/bugzilla/>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [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 +0000
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-bugs@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-299361-227-xOHUkVS5SA@https.bugs.freebsd.org/bugzilla/>
References: <bug-299361-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="40999"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1792167296;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=xHxQxftxzULHr2DkgBAy+YuMH+NPz4A45bdbDKeWXx8=;
	b=ErxoIihdMEAHkokoUncY5T5WiV9U8E7BZz1w8m8OX0WwcWkz92VHVoWAkRREzKDOCYyiy0
	zdJTLKtdJ7NdfflviLs79V3mH1iYli6+Due6kxoB9en2+rGB1G/gqJ8YLOOGu7nMeYyaZN
	iapxAZoogv/n2DnF9s0/vqpJQXUBpeApVElLXJReSW35xYB3b9clOEZxAmL62iv3MfW6QH
	j2h1j554Gy5FbpWNIlxw5D69Dvm/WFhiJld7nHDEMCT9bD2iNl10WFeHDsqLYlbUSWgEc5
	BWTlsMoR8k1Q0ZHrWwo8iYCpxWg8RBwFemuZT5Wfj8lmM4ATVLQQP2Nh6ktYRw==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
In-Reply-To: <bug-299361-227@https.bugs.freebsd.org/bugzilla/>
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes