From nobody Mon Aug 26 18:30:02 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 4Wszk23LqMz5TNwt; Mon, 26 Aug 2024 18:30:02 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wszk22CS5z4Bb8; Mon, 26 Aug 2024 18:30:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724697002; 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=jdTDgI8HRBu2X4FMBpmORd4nb14S3PFOub1C7kBN1Qc=; b=k9c15mImb/Aixt9J6mtCRag3UUN3yKrAAjhq0HhllQhRB+IZ0QitbnXlYlrbwsCD3qpuSL GxSin60QRP9scOzRUovkNLuy3Hby4hK+QP4yrFal/uaLXw7rb9NVd4yW1LupAlB5DyQIXm QH0Vns2XD6En7pJ4zJuuVaDeZKiAUHzOclSmWTYCfXMcTQ3rJpK+BNJUi2odYn+QeoIkis bXf0jRtTHI85pcLAvfDxNWJ84BfQ2JAP/117b6smmm0+GQ8DkMxUky2u+5f1A6ptzKPAIH ecQVRz4g6Ui8q5rA5IRH270HSl82bnitXvr6K4bksIZgswaphejyYMqNBaRe4w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724697002; a=rsa-sha256; cv=none; b=lfgn5D0ohKyqZzKdt5dh4lmEi7jAbIif9GI1oHV4L6quevToJAnIU69zbAMu+Pfi9jr4M9 NJgbOgh+W80h8US050TAzGYeZfWLMMH2TEI4nVimUUgjA86/qk+T691GYRcM+OQu35uVdA YHrKzfDgFxwFSqJp6vPXIDFVV8ex7t9UI7nDXmcD/6ksLiwhrdEF6FAuadJwVcQwHYkauQ d8xtvIPK4XDLh1UaWVunH97FFhupKkIVJztV68y2xPjkPXuRgbS4nKgWaLBr9nn8vb7mNy Tqo9VJ10ILeHK9/cTQTZzBqftDqbLZFU722pn2O/pF9SjedHAYIzPagaUAbTZQ== 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=1724697002; 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=jdTDgI8HRBu2X4FMBpmORd4nb14S3PFOub1C7kBN1Qc=; b=sLlFmiFeUtwIMWgC8GOhYNu+220RmP/MM/SI5yCosLloyjkQC+zRiuJwU25dYAJ7b/uJ+n yvLEUHErQ1R+uiUbiC76AQpbI7kMvB7rduCXU0rDg1YC5FfCqXJUS2yvh8JIk3Bl6knFuH wVv671kPQQRw3tPRvR8ytMyXgoMjJ2gatexMJtzn155NwAYJ0znRqlkm6/CTSe4nSyDAxz fAzPcpijgn0i4vpPRat0MQBchrblZ86gp86r/nVSObOWHcQMpgh6kFBALKB6wj41718otB Q2mLahsF4WU770WdiuyAX/3HAegbAz3v9wvA60d7qlpCwxnhc1W/Rvn7QuS0UQ== 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 4Wszk21psGzH7L; Mon, 26 Aug 2024 18:30:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47QIU2RC079090; Mon, 26 Aug 2024 18:30:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47QIU2kV079085; Mon, 26 Aug 2024 18:30:02 GMT (envelope-from git) Date: Mon, 26 Aug 2024 18:30:02 GMT Message-Id: <202408261830.47QIU2kV079085@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 62bb18abed25 - main - p9fs: Properly handle paths containing "." 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 62bb18abed25a831a29e1e5b6e6f7fdddbba6403 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=62bb18abed25a831a29e1e5b6e6f7fdddbba6403 commit 62bb18abed25a831a29e1e5b6e6f7fdddbba6403 Author: Bakul Shah AuthorDate: 2024-08-04 18:19:52 +0000 Commit: Mark Johnston CommitDate: 2024-08-26 18:24:59 +0000 p9fs: Properly handle paths containing "." Fixes: 56e4622588ed ("p9fs: fix lookup of "." for lib9p-based 9P servers") Pull Request: https://github.com/freebsd/freebsd-src/pull/1361 --- sys/fs/p9fs/p9fs_vnops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/p9fs/p9fs_vnops.c b/sys/fs/p9fs/p9fs_vnops.c index 6ac0a7c008cc..14951e96b59d 100644 --- a/sys/fs/p9fs/p9fs_vnops.c +++ b/sys/fs/p9fs/p9fs_vnops.c @@ -238,7 +238,7 @@ p9fs_lookup(struct vop_lookup_args *ap) if (dnp == NULL) return (ENOENT); - if (cnp->cn_nameptr[0] == '.' && strlen(cnp->cn_nameptr) == 1) { + if (cnp->cn_nameptr[0] == '.' && cnp->cn_namelen == 1) { vref(dvp); *vpp = dvp; return (0);