From nobody Wed Aug 12 19:41:42 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hKzQH4d2hz6nr1r for ; Wed, 12 Aug 2026 19:41:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hKzQG5xfyz434k for ; Wed, 12 Aug 2026 19:41:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786563702; 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; bh=eA10Nf5p7tmQvobfyxw2B5IXPf4arGPFL3Tm2RlV0lk=; b=FrUE24NidCtgoI11+T8caiFbEd50m+ivCXl26K5vWJ7Zq3rN76CMAgNN9d4uCK+N/v49Q/ i91Zqb57SMfKFhTV+aNsWxgDxhryWTM1Ozm01VEtPt+bNK75R82KUlXhg2YDZR4QrLTWa6 lOUqzN5tQPUJfydb9ybuAYetvbHtp+iDSR3zfGO7hUBAVfaqliLc/tgxN9bfz8VxUGPaQA E4jND7dcrcGSPfLiwBQft3bnaFVPMByfz/TJgRfGfRKT70fO4DH4MuoOr5wqgMV2WzMMki wNjWOjbuOE/9RY2CFb43+CJoCx0zsC8rQVEwUHQL4Xf4kyO8L8zTkUOccba4sA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786563702; a=rsa-sha256; cv=none; b=vFsDyO6eoJ9oD4g7rR5D0M/NUW1ThcuIKGHRx3JbECc8JI4QNw82ND+v/jDYDBvPDKqDCC H9e1YUb4PnqX34n42dRugIf2bCdVfdr8Behdur9ZhwQcSgPC2J9POsx/6QZ6cmojH4Dz4c XNPZh+0Ny/Izho5TAdEeLM2TVqo2qQjnxhVAPO7QMm+DI9tLyRgsyNEMyUHGqEzncaTu5a 6kZ+KjnAR4ObMCr15Hg5P7LDSw2T/PxZUc55e2yqjvpuJ34TiKnRTHEfrzAzesCdmZ6jFy ZmoYRGea5xtPDtprjwfp7sQOR5zZcRiaNCJ26MtznPak/53Q98p9AesfGXZ8sQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786563702; 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; bh=eA10Nf5p7tmQvobfyxw2B5IXPf4arGPFL3Tm2RlV0lk=; b=f3OzYrwIeaUcGGol56ku3fd5+zd56Gu1AaIqoG1+J/sR7qPFtWlm2+Qmkb78XIh7TrBXEv WIq9Kpc/ZMaLdBMS6giOjflh//ePyhi9bGcMfkXSIQHQSKJeQv42WhI7H1iMB9B85SsP8g z4I8PgLSXuoLHUuyOLbG26Aqo+5Jn8xy+Xo3h4DfFG1QXMumdYRFf6y1TObBlwA3oi0O1Z x+WpPRvXD2sTuE6RSC50Rz5JAfcfHJ6mcOTYCmO0Stmp8OQ2dX13jVrVyJ5l9k9ZRXDfv0 uuB+GW0jIXS8zXqJCH9vnr0I/IZlrnjYrY6tcKPDN/fSSI+6VwW59bbRAqCBhA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hKzQG3NDTzg0T for ; Wed, 12 Aug 2026 19:41:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31aaa by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 12 Aug 2026 19:41:42 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav Subject: git: 887114a9e1ae - stable/14 - du: Print progress information to stderr List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 887114a9e1aec877a44ddb7ce1eb4319ee1b19bf Auto-Submitted: auto-generated Date: Wed, 12 Aug 2026 19:41:42 +0000 Message-Id: <6a7ccc76.31aaa.3b2c5091@gitrepo.freebsd.org> The branch stable/14 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=887114a9e1aec877a44ddb7ce1eb4319ee1b19bf commit 887114a9e1aec877a44ddb7ce1eb4319ee1b19bf Author: Dag-Erling Smørgrav AuthorDate: 2026-08-08 00:10:23 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2026-08-12 19:20:22 +0000 du: Print progress information to stderr * On SIGINFO, print the current path to stderr rather than stdout. * Do so immediately, instead of the next time we finish a directory. * Document this behavior in the manual page. PR: 296861 MFC after: 1 week Fixes: d1588599c024 ("Report the next directory being scanned ...") Reviewed by: wollman Differential Revision: https://reviews.freebsd.org/D58702 (cherry picked from commit fd79bf63442eefd2c3bfb695a377dbd705f5cc6d) --- usr.bin/du/du.1 | 12 +++++++++++- usr.bin/du/du.c | 8 ++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/usr.bin/du/du.1 b/usr.bin/du/du.1 index ea28ed30d032..1c5590d06086 100644 --- a/usr.bin/du/du.1 +++ b/usr.bin/du/du.1 @@ -27,7 +27,7 @@ .\" .\" @(#)du.1 8.2 (Berkeley) 4/1/94 .\" -.Dd August 1, 2019 +.Dd August 7, 2026 .Dt DU 1 .Os .Sh NAME @@ -176,6 +176,16 @@ and .Fl Fl si options all override each other; the last one specified determines the block counts used. +.Pp +If +.Nm +receives a +.Dv SIGINFO +(see the +.Cm status +argument for +.Xr stty 1 ) +signal, the current file will be written to the standard error output. .Sh ENVIRONMENT .Bl -tag -width BLOCKSIZE .It Ev BLOCKSIZE diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c index 90b95b3d86e9..efbf638628f8 100644 --- a/usr.bin/du/du.c +++ b/usr.bin/du/du.c @@ -267,6 +267,10 @@ main(int argc, char *argv[]) err(1, "fts_open"); while (errno = 0, (p = fts_read(fts)) != NULL) { + if (info) { + info = 0; + (void)fprintf(stderr, "\t%s\n", p->fts_path); + } switch (p->fts_info) { case FTS_D: /* Ignore. */ if (ignorep(p)) @@ -295,10 +299,6 @@ main(int argc, char *argv[]) p->fts_path); } } - if (info) { - info = 0; - (void)printf("\t%s\n", p->fts_path); - } break; case FTS_DC: /* Ignore. */ break;