From nobody Sun Apr 12 13:45:25 2026 X-Original-To: bugs@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 4ftsHV0HTBz6ZMHn for ; Sun, 12 Apr 2026 13:45:26 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ftsHT6NKzz3nJ8 for ; Sun, 12 Apr 2026 13:45:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776001525; 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=2JHqCuP+jQVPVj9ummpL5YXC5otBMIeeSxhTK7EyQQo=; b=UJ4KrQDPW6UVkUAwDZ/aHFpO66Mxi281YteUqSU4yxGqZhKLdGhNy6CMpJjyGvf1DS/Skx B5et8ZUTGxWDJa7WHZcVOyeE7U59zAVJQPDyuu6Yi02LnwFKFh49URxd8F1DhrM1qMgR5z NwowJOqNprv/WhD/nNt5A26iJ7fwH2He6WDNTyEmziOac8eVbAxXG4uvHbuvL/8drzgjSw O+vwz7jApwrU4mUhaWF03cqoP++wKyLGzyFQcF9KTloTKcwAY6gbHh45uIyhCOLxW0ZvPt BlpKHpKam22yfKu5/Htdg3kMpsIC90RwVlJ5HKCvr2qIPWOIhCejxrRkRwwX+w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776001525; a=rsa-sha256; cv=none; b=XajWUrtK0LCV9Uzo6hwXuyy3nBvXvVECQZ2n3cSrU/8s9Blc58pfT/TbSVkzFe9Cx3bD3z PG9C1nMNuh5FwDqslRS3YR4fEQCoNaoH3r2ELoolA4aG/n2h8NzHFDMwzOG/x36tCQslOz pXs/wFLmDh+qK9H/6BhX2WiNLVoh3/V9KNCQseSxeEWuz03MXO91o2NYP1r17XVRQMR+qw cMGLZK3Tx83NOaCu+1ILrV8KjvfV/AgzoMl4S+8pSqBprROGFatMVsPbaKSRRF/CukSohH MvZBk09OTae1utT+VBdMvvSLmDABz2/0AsDZfx5JqjGh+lcKriYEOYp1RDtYDA== 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=1776001525; 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=2JHqCuP+jQVPVj9ummpL5YXC5otBMIeeSxhTK7EyQQo=; b=avrCTa2zXAHl20TiWZ0NzzWGNQ7HXmq1DmiTzd7jiUWWCCSY75rUHFH+HRUV2VDrniBM8z 6FhYRrSt+35cjG8WdmlkOEvBIhviv37hDuOxMVLrQilI2iwQ1q9zjCIgevyn/5qqQEI7AY 67q/l/I5VxbIzTfNvJQt8tPp7geYkIlznkApgwIsS+S3LyijYQ45Fu4vj0EDbCocm8e2If QTaIFEn0PUZv56BCi9/3QcAZR+gvdUX+QuWwo8YCKo6hBt9PjfDR0m2marsyfJOJE6ZHBz n7xb1ueMSTjnoGgYKWz0eUP4zuhJRGowiI2E/LFQL/398kUrPi9hyjAFUKYoUg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ftsHT5tnBz3jY for ; Sun, 12 Apr 2026 13:45:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 63CDjPGn019925 for ; Sun, 12 Apr 2026 13:45:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 63CDjPLu019924 for bugs@FreeBSD.org; Sun, 12 Apr 2026 13:45:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 287451] [/bin/ls] readdir() errors delivered via fts_children() are silently discarded Date: Sun, 12 Apr 2026 13:45:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevans@freebsd.org X-Bugzilla-Flags: mfc-stable15? mfc-stable14? mfc-stable13- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D287451 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D6c92918fa159e974322c5e09ac6cffa9d= 807b0f2 commit 6c92918fa159e974322c5e09ac6cffa9d807b0f2 Author: Kyle Evans AuthorDate: 2026-02-11 19:55:55 +0000 Commit: Kyle Evans CommitDate: 2026-04-12 13:43:45 +0000 ls: check fts_children() for errors that may not surface otherwise In particular, if one simply does a non-recursive `ls` on a directory that is not accessible, there are some classes of errors that may cause it to fail that wouldn't be surfaced unless we do an fts_read() that will recurse into the inaccessible directory. Catch those kinds of errors here since we cannot expect to an FTS_ERR/FTS_DNR entry to follow up on them. PR: 287451 Reviewed by: kib Discusssed with: des (cherry picked from commit 7bf81e39d83087dc7f984077b5eed5a48df794d4) bin/ls/ls.c | 17 +++++++++++++++++ bin/ls/tests/ls_tests.sh | 30 ++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) --=20 You are receiving this mail because: You are on the CC list for the bug.=