From nobody Sun Jun 28 18:40:25 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 4gpJBL0MtGz6jkL9 for ; Sun, 28 Jun 2026 18:40:26 +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 4gpJBK1cQ2z3Xwt for ; Sun, 28 Jun 2026 18:40:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782672025; 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=MqYTvOYsfGM0fPobdBpAmazBxyIxQGGdIOSNMbTN2B8=; b=eX9d2xLTfQCe+vycrA2VJM/aVC4/7+pFQU34fd8KQFSel0nGgNw+GXEr4dnCsxTS97Z2Ma 5/e+OPdEOw0e2C61zsKWCMzKeWxL4dRdIUvfoTjW0HpKq2HE1mwlFOkISC2uCOyuXnsdcd CZbW7Ci5SC4yoizVACaSOJ92SdFoQ9RwziyGxIrd0KXw4bAdFLiG/ZxQ3RKDgXqzgc7qJu 6BhCZ6Z8cfzMaOaTKonF+1xV10tYLgf1bSHSVqkGZzgKv6PJe7OQnJ3bgqh2X3Q+MweKBz my7DGpnh8iML2YblnUON4bbv8Nm88ekstVfD+JTCEOUziiVj4+/hRQvm+E18lQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782672025; a=rsa-sha256; cv=none; b=QdP3xYBp0wQziG1pa+oVGTvWOCyFUA0AUqbLhKBoFvMHhbsHJTmGs9Qr0DxjC1GJSpqpFV BV0pxx5NsBYX3ivEmLmLmRBnuMcRZXee+ZmEGyBpsxOe9GH805pZTPbLEgPYRDTABOzUR3 DyMPuYGG6FbRRQjrjWqoRBVElNzUEGhSmu1/DBJMn/uy8YtMk4DdefEF4gSNgLv9nv1LiD TK7I3IDwCcc2JkgntBCjABWIrDVn/g8Vwb+wvVT99SJqjcRhLjsNe2uoKxMIWRIBpzE/iz 6GRoIs14t6QoJD+yoK5xsMAr4ljt/voR414Tvy/FVxBPLDDz184qOj2PRdGR8g== 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=1782672025; 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=MqYTvOYsfGM0fPobdBpAmazBxyIxQGGdIOSNMbTN2B8=; b=w4m5VPKkh/JaH/2cN5K6cdrwU8jGy4xKNzqfc/eR9Om9qyPVaekAdeaGfQ9WjavHuPkLOP Oy+CLf1sUrd3s/+GMfwMSmln27GG4Uw6o7sw+5U3qKUqJLdXIiV5Qbrp31dKK2guuZAY2/ exaxsUV/V2H6RLRGAiSKPc/cu0MX1EMj7f31YI0Tq2uemZrmNb7U7GKbvlJyQDFe/6nKxe 0JiAl8v+FdeHiTfoEVicpD/L+f4NmPqrxIpKOBEMDgfZM1TuhnqcMTDRjzVkOBK/F4hEn3 fRvxIMbQ/vZzRROSWTtMVgRntJpO4B5W6gJ+4XQ7JgA3m79b8o3wJUxso4sPYQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gpJBK07YBz6T3 for ; Sun, 28 Jun 2026 18:40:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1c993 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 28 Jun 2026 18:40:25 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Baptiste Daroussin Subject: git: 985f74ce766e - stable/15 - nuageinit: fix non-standard f:close(cmd) and remove dead precmd 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: 985f74ce766e975029341add15d6e4afca148c9c Auto-Submitted: auto-generated Date: Sun, 28 Jun 2026 18:40:25 +0000 Message-Id: <6a416a99.1c993.33118146@gitrepo.freebsd.org> The branch stable/15 has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=985f74ce766e975029341add15d6e4afca148c9c commit 985f74ce766e975029341add15d6e4afca148c9c Author: Baptiste Daroussin AuthorDate: 2026-06-04 18:59:30 +0000 Commit: Baptiste Daroussin CommitDate: 2026-06-28 18:32:25 +0000 nuageinit: fix non-standard f:close(cmd) and remove dead precmd - f:close(cmd) -> f:close() in adduser() and exec_change_password(): the 'cmd' argument is not standard Lua and is silently ignored. - Remove dead 'precmd' variable in adduser(). (cherry picked from commit fdff89256fd921e40f2fa532895315b1dab6f5e6) --- libexec/nuageinit/nuage.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libexec/nuageinit/nuage.lua b/libexec/nuageinit/nuage.lua index c443d6711b14..7e7b2a64305f 100644 --- a/libexec/nuageinit/nuage.lua +++ b/libexec/nuageinit/nuage.lua @@ -271,7 +271,6 @@ local function adduser(pwd) if not pwd.shell then pwd.shell = "/bin/sh" end - local precmd = "" local postcmd = "" local input = nil if pwd.passwd then @@ -281,7 +280,7 @@ local function adduser(pwd) input = pwd.plain_text_passwd postcmd = " -h 0" end - cmd = precmd .. "pw " + cmd = "pw " if root then cmd = cmd .. "-R " .. root .. " " end @@ -293,7 +292,7 @@ local function adduser(pwd) if input then f:write(input) end - local r = f:close(cmd) + local r = f:close() if not r then warnmsg("fail to add user " .. pwd.name) warnmsg(cmd) @@ -536,7 +535,7 @@ local function exec_change_password(user, password, type, expire) f:write(input) end -- ignore stdout to avoid printing the password in case of random password - local r = f:close(cmd) + local r = f:close() if not r then warnmsg("fail to change user password ".. user) warnmsg(cmd)