From nobody Sat Jan 20 23:21:29 2024 X-Original-To: dev-commits-src-all@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 4THXYP6k8Bz57kW0; Sat, 20 Jan 2024 23:21:29 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4THXYP68hrz59SV; Sat, 20 Jan 2024 23:21:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705792889; 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=SA2HXEInf5aPdVxD/8wMvoRBLWQmrlNhV2HJxrAGReU=; b=puqi0lRsonrCOMR7LDh7IvXX/Y+LZt/qqFxos2En57KggO5xZ+rc4zUGjFz3QhGyT5IYyL +oq2lPu6hidPJG9u+0R/yqQf+70jxlasOX8WDK1cvQpl1LNAzPCsS84UBzsg/bveqHGeJJ cJgRLMMgktASD42hhrcPinSGag07/YRixgbQqiCXDmJSsx9HNiTeVLegKoGcG1u++6pMXU bAYru/QZYvOhs6L7eUitdeTbWttZ/MzROBLpOH1PMuK9Ba8j6v/5qppGJNrzmzHos6Xy7u mUSFlUcLQcv55+YCkaAMGwvK9eYzXYJzGBiqVOiMPBqe6Srd/rVfx7PjXXRyYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705792889; 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=SA2HXEInf5aPdVxD/8wMvoRBLWQmrlNhV2HJxrAGReU=; b=qeRlCBmeJjzd8y5KTvJYs8G2a8Io0ob3KBe+ft/ax0rL9jnjf6NtsVmybUck7wR6Qjff4P Q4v7NooUhzvUnkq1sYOqQw73Qf5LTXbMmvjhhHouPfUCMo+AdOjWzSky6D4qRwPb5zs7wf ea/MB/fcFCOjOqBoNCm0ZaVOo0qBj8IfoXKn+fCpFnBxxDSHWxknqX3WVxmR2ABsoPmshv YbFVH3RipHiLbttnAnlTrnEeOaaeXtDKCDf4/c/gegdDm9fAyJom4GMcvD8ecWrLBUFmds 3U4EE8/Bemrvmzwx9TpkbSX0qRuDAuC+WUiWEMA9SgLdsUmrN53wpZIpzMoZEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705792889; a=rsa-sha256; cv=none; b=gRCiN7eZNcva+8DbvF+r4JTEukpoST/3ULQ8pSQN7AyEDXWY7S4Snjmto11R2OdEmPh97p 5N90Z5HHuMf5UuWkFalKXAcOvXtCtNg5Y1uW+yi6Y23O5ZCYPT9QoVrBtvS88C2qb8h4wP JXwAnIRs5O1uRSAcuhxbIRouIbZEiH9oj0E5p3C1WFSXB9JE7jw1wy4cTrol+wJ1spET1H rnD/Fe4pX6SwxJ7frpIC6d5guEVLZ1iJ/i92TSE2I4HkP5dF8i1b2yhACK89TQDZ5U4fZL TWKxm4Vt9hxaC12QKqrbL6Twnwpa+2AUE54ooE7XElj/Kn4lWdl7dIJAqeEYyA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4THXYP5FH0zv5j; Sat, 20 Jan 2024 23:21:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40KNLT2k039344; Sat, 20 Jan 2024 23:21:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40KNLTGl039341; Sat, 20 Jan 2024 23:21:29 GMT (envelope-from git) Date: Sat, 20 Jan 2024 23:21:29 GMT Message-Id: <202401202321.40KNLTGl039341@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: deeb1d34024b - main - fsck_msdosfs: do not call checksize() if the cluster is bad List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: deeb1d34024b3f843d965cdf204c745165c9bac0 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=deeb1d34024b3f843d965cdf204c745165c9bac0 commit deeb1d34024b3f843d965cdf204c745165c9bac0 Author: John F. Carr AuthorDate: 2024-01-20 23:18:18 +0000 Commit: Konstantin Belousov CommitDate: 2024-01-20 23:20:24 +0000 fsck_msdosfs: do not call checksize() if the cluster is bad PR: 276464 MFC after: 1 week --- sbin/fsck_msdosfs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/fsck_msdosfs/dir.c b/sbin/fsck_msdosfs/dir.c index c60eaab59b12..19516d882e2a 100644 --- a/sbin/fsck_msdosfs/dir.c +++ b/sbin/fsck_msdosfs/dir.c @@ -995,7 +995,7 @@ readDosDirSection(struct fat_descriptor *fat, struct dosDirEntry *dir) n->next = pendingDirectories; n->dir = d; pendingDirectories = n; - } else { + } else if (!(mod & FSERROR)) { mod |= k = checksize(fat, p, &dirent); if (k & FSDIRMOD) mod |= THISMOD;