From nobody Sun Apr 12 03:17:01 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 4ftbLQ0hvkz6YMRX for ; Sun, 12 Apr 2026 03:17:02 +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 4ftbLP3Wswz3PW0 for ; Sun, 12 Apr 2026 03:17:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775963821; 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=/ymaBjdmCdVBPLPd6Esoy7Pm5sM+i1fSpVso+T9uE3U=; b=ftmxZk4pG7NsJYrvbRDZRPSEkyNdk9Lk+9/BoeYyTTJfGXOnQkDSNAEU2z3LTPj2GsdHlM 4H0ar8nOxbX6hOeojfWYYQp+5ud05M7qb+xPX7/YZf3nIHUmTwwxXYfE7FBpTJ8E12cXi1 yuSeSjN0sTTZ9SkDvRXVTJ2aAR1ndxPJcnmoL8HxZeILWz/VF2URTGtTBgkZdhPmELX/Fs AoG8+rjhIuOJUAIRaRdSJCsjhIqb2wjcAqW23l3TR0DRfspZsIIheg9nNBsYpIMvsu/XaD xO3/g1mOg5wvO4YcYVrQUADb5LHoVmfmWaLPR/CAd22nZPWgQ3NwXZiUAw8njQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775963821; a=rsa-sha256; cv=none; b=PfGTl97UWsWeLGJ+0P+DWadS6Z2jYlVe4cpGuG6keFNpMXQxA4YU/XtkyzbxyzjdHTJ/Wk WMzy+5P6D3vZ3tHXQpGMtgdYdYED+WFYTeVnKmV3v2nm5LoJVdd6m5B5Ks2w1Q9vKIFaBt QgaUXJC8AozE0zpXwLt9EXB08wndQNpLE6kbyzH3736xYu9/E2wif6Qr9fIPUJJhh1ZEi6 lSYeskbT5gTvSKc8AeSgGOmgPmipSpYC4VyE0cxEJb8I9e6HOEH0tMN2Qmnt3o90F7BHzT 5VVigF/rajvVjkZGvVPZLn/m5vn3TEOHI8W3D4Ph1V2IlU6/qWg7aXAVppQg/g== 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=1775963821; 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=/ymaBjdmCdVBPLPd6Esoy7Pm5sM+i1fSpVso+T9uE3U=; b=cDRTVFgMIjRywYgVsrCtPypnTqmNbaRczYK7LEBUdXJ2qNIIkpgVRfyyQNeJ4/DL79JH0M Hio0jMpT3pxDKnQdmo6EkzaRfbyEjbEKmEfYYcNKnT8yIJO0rUsdRI8k+L3oFIk1oN5eFA h1CtWdnIWfKycOhpdn7P6k12Jmqbxrc8Yu5Bu9EdHkdkbbhpMnEjB71ROp74XNlt8C529m uQdTO15Ov1PlujF5ZAj013PHE8QCknBW5qWb1B92u3H7pHHPpsVvtoEXooIKP8c/wz203w dABzeVVLrlFForKnaP7GyZnlFfgX0MVYrQUgcpX8DG1+/O+lO6MwcPi6RJFbnA== 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 4ftbLP2w8MzySw for ; Sun, 12 Apr 2026 03:17:01 +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 63C3H178028265 for ; Sun, 12 Apr 2026 03:17:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 63C3H1Ta028254 for bugs@FreeBSD.org; Sun, 12 Apr 2026 03:17:01 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 03:17:01 +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 #2 from commit-hook@FreeBSD.org --- A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D7bb6c194c9695377a643b26b59be4af48= 52c8227 commit 7bb6c194c9695377a643b26b59be4af4852c8227 Author: Kyle Evans AuthorDate: 2026-02-11 19:55:55 +0000 Commit: Kyle Evans CommitDate: 2026-04-12 03:15:15 +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.=