From nobody Sat Jan 31 23:02:48 2026 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 4f3T1V1RxNz6Qfb6 for ; Sat, 31 Jan 2026 23:02:54 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f3T1V0VXnz3lT0 for ; Sat, 31 Jan 2026 23:02:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769900574; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RY9IHEIOoc9lBZ7FjsS9mDjMKduSAYw1icHDzHpf9gI=; b=gb4uM5NLaC2+RNxBABpqDMmgHWK26WaggnvM3d2LrbQKAKv4HdbaUj15inrRT3bsQvAS/w IHJH2uBPm33iFYHrvypifdENgM9WHJp+AH5+H9sSU96FhbX1DRQQ2UMeqxe45qypMlH8kc IwBfPAmUpTXfcCaPWvtROgPDsvgma4PxoYDUiAPDPQq4ScHEYEYZ87Ht06p6FVfC6cA5rD KwnlMHkn2ccYikDW7cOJpCsidKl6mUWQ59QXUylxTFlplPnQLTJHvvrPqAR7xkPXG0fFzy mlEpZCOElRk/DWnQc4tpqEC5AVWrNovy0+pzs5zkQ84X7Qo9kXdBWut5VWYB0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1769900574; a=rsa-sha256; cv=none; b=biLUjmRvH60etcpSZd1vYcjZcbxYF7eTbI2B4kBExIyX+gg42qdSlzVYLiULMY5cZhuuD5 OTOWLoB8+QVUhZdCb+bzDNwNS8XtwzF/9CV4fPZSynOLMTLf6tq1j9um5eC9Vj/poXDqb/ meplAcPyAagwVlhXXwGftHZP7pfk5EMtbABfkiy6W/4mKeKn2+tTwQdoUvLihP+2srWM/b 0oZ/FkY/acIkp4MwZohlsitJQ9Kcbur5Ojm8AmyzzLXnqOBRp9Le9piQiNi7O1GSVKausA mrIOJfXd/U+6GlNR/trHxHREDa+ZsoYOvYclh5LxVdmAQNbhgegCuqLM+ndnOQ== 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=1769900574; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RY9IHEIOoc9lBZ7FjsS9mDjMKduSAYw1icHDzHpf9gI=; b=g5cjncdtyRB90EeyBXNWDr8lzkkOi/RPGjBu3K/pmXYgvhhLWZ8f9xwAGLUAX3OFwtrtYa BvAuUUmnoHAHyodYcrl3BQMtikxYzv+nhR4gTZ31s7DUaVF9r4VUqKPYjMx8ji5bIsr4IO r/9nMm24YJzqYvozd/gtRuCD65H10Y+aTpa0BzXoGFAt8sUN5chpKPDUHNayO3hRFwOfXe eBClLy6hDwE9U+12n1FMLcbecizS0C13zXCD3q6tqCqKuaf8Y1/2JzzxDdMNcHisgLkt3z mwbVbYABCYk05ARZcST0EdIStiLRlKaaniUym2u6ODs52eAEFOSbJvV9idfH6A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4f3T1V02dgzTV for ; Sat, 31 Jan 2026 23:02:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 46cea by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 31 Jan 2026 23:02:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Rose <83477269+AtariDreams@users.noreply.github.com> From: Enji Cooper Subject: git: c2b119e06bd9 - stable/13 - Correct size parameter to strncmp 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ngie X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: c2b119e06bd960fbd6e0b69e304cfc7ad559a530 Auto-Submitted: auto-generated Date: Sat, 31 Jan 2026 23:02:48 +0000 Message-Id: <697e8a18.46cea.651a2d01@gitrepo.freebsd.org> The branch stable/13 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=c2b119e06bd960fbd6e0b69e304cfc7ad559a530 commit c2b119e06bd960fbd6e0b69e304cfc7ad559a530 Author: Alfonso Gregory AuthorDate: 2023-05-08 23:08:18 +0000 Commit: Enji Cooper CommitDate: 2026-01-31 23:02:17 +0000 Correct size parameter to strncmp The wrong value passed to strncmp meant that only enable and disable were being accepted. This change corrects the logic so enabled and disabled are also accepted. Pull Request: https://github.com/freebsd/freebsd-src/pull/739 MFC after: 1 week Reviewed by: delphij, ngie (cherry picked from commit 5a9c724847f9b4e3831aa2c16276cc2ae20a99cc) --- usr.sbin/mptutil/mpt_volume.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/mptutil/mpt_volume.c b/usr.sbin/mptutil/mpt_volume.c index 73137f647157..71251e591eec 100644 --- a/usr.sbin/mptutil/mpt_volume.c +++ b/usr.sbin/mptutil/mpt_volume.c @@ -245,9 +245,9 @@ volume_cache(int ac, char **av) Settings = volume->VolumeSettings.Settings; NewSettings = Settings; - if (strncmp(av[2], "enable", sizeof("enable")) == 0) + if (strncmp(av[2], "enable", strlen("enable")) == 0) NewSettings |= 0x01; - if (strncmp(av[2], "disable", sizeof("disable")) == 0) + else if (strncmp(av[2], "disable", strlen("disable")) == 0) NewSettings &= ~0x01; if (NewSettings == Settings) {