From nobody Sun Jun 28 18:40:18 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 4gpJBD1jZgz6jkFv for ; Sun, 28 Jun 2026 18:40:20 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gpJBB63hfz3XMy for ; Sun, 28 Jun 2026 18:40:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782672018; 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=4GlHQjueSxq+QvjdCqp89VmqdLo2BXvBAWWw5J1ySbU=; b=SeO7IpUeHHwhFcZICWlakHwJQXnsVA8BuZ3LZ0SEfKArOz2LM38PjU23/SXpyJH9s5uvIN /sQ+KS11IOu+JRQV2wSKxRWvaKZ/xxBD4F/97mw5P3zYIBhCb+F4yOG2lrWbLsUxbdXgjy p5VhDBwE7PLwm4n24tXnKceypfjZZJkpZexFc8pHtwAS6Q/XOpFZw8IJMggXv2Qg70emm3 tcEwr+3oKmY6R9cu4MskrIZAmtslyjz8YDrrU276vKVIsbYMv0Fa2zFw9n091vHsnZx77p b2S50yrdHWb3P76I2Q9t0ESsPEisZl5NnalfHVLoz3GZ+5GQEzBfoJ2xyvtyvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782672018; a=rsa-sha256; cv=none; b=JHLSOdcbBs8WAf6l9O9cv0zjFuBx/7/42kji5dN6u5ZQk1O0fGO7RFLohHJeAnt3qgJPzZ SWVzLpng9uJ+O3JlweUirVr7qgFjjbekkN+FPio2/I9Xj8okXr3y6oekJ7WBDSHxtBJkpI 6cAz68EZdP1NERGHoRehxyF/s9zYsimA87S25f3k60smqFpMXdoKJbAuTRGzCZqMd0GxsN yVZ38kS7MG6CNIXg03HgztZtuF+sFKe8m3wrNOrLRTrVeVOZjMe13T+UV7LeDvehi4wZ2H VoHgXA20Iq2DV72GDzaerRfuzUuhiJ8QK7EAiSYHJx3LE/bIK1RC2/fB+Ks23A== 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=1782672018; 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=4GlHQjueSxq+QvjdCqp89VmqdLo2BXvBAWWw5J1ySbU=; b=uyVQyZE4XhPvmJQj+LMPRoubs9bfyBl6cpypE9Dr41yUkFncrYuPyuFe8K+uP/dUHKvI0c WOAGKIzSLxzTHrTFimNybanIK6PsiXCTDT4InyfadrSPFN0zK6TruXviujm7WBTfCCUOk0 orBkqwneAdv0Gmf7/s+fZH1VM6vQkCI9Arr8w+SS8ej7eFS7a5ekgtmsbgyqoI+QEc8ZcZ vcz8tfRlJ6ALrE3u+MAcflVxSbFEStxK2sA+c6pYNpRigwYiLYuz9/e30g+zzKDb/W5WlV VjDrGXWVML83nleUXZrXsfYVVcl4NpxG02XvSFMlQOqripVnGSumeRxJohUIRQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gpJBB3gVsz7D3 for ; Sun, 28 Jun 2026 18:40:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1c436 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 28 Jun 2026 18:40:18 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Baptiste Daroussin Subject: git: 4baa3af22f78 - stable/15 - nuageinit: fix dirname('/') returning nil instead of '/' 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 4baa3af22f78e5aec939df526d57c64e5ede4dbc Auto-Submitted: auto-generated Date: Sun, 28 Jun 2026 18:40:18 +0000 Message-Id: <6a416a92.1c436.49011e6d@gitrepo.freebsd.org> The branch stable/15 has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=4baa3af22f78e5aec939df526d57c64e5ede4dbc commit 4baa3af22f78e5aec939df526d57c64e5ede4dbc Author: Baptiste Daroussin AuthorDate: 2026-06-04 16:44:31 +0000 Commit: Baptiste Daroussin CommitDate: 2026-06-28 18:32:24 +0000 nuageinit: fix dirname('/') returning nil instead of '/' (cherry picked from commit b813e46e153327b66db4791ec0003b7e7cc51214) --- libexec/nuageinit/nuage.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libexec/nuageinit/nuage.lua b/libexec/nuageinit/nuage.lua index f3c23a7c3eb8..839cf3588021 100644 --- a/libexec/nuageinit/nuage.lua +++ b/libexec/nuageinit/nuage.lua @@ -93,6 +93,9 @@ local function dirname(oldpath) end local path = oldpath:gsub("[^/]+/*$", "") if path == "" then + if oldpath:sub(1, 1) == "/" then + return "/" + end return nil end return path