From nobody Thu Jun 4 21:15:45 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 4gWcmd6Z8wz6gy5Q for ; Thu, 04 Jun 2026 21:15:45 +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" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gWcmd3NcVz3Llc for ; Thu, 04 Jun 2026 21:15:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780607745; 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=Y2touUI9WTxSPakbAN+5cWIO0Czn5RXLETPo+cJ510U=; b=yaWmIfncIg7Bs7R48OwtOx6iBpnydkcxaJ1ZvIGBykQOJjmqWiYv1tCa63CsS/BMjBviaJ 1YNhM2mGgb7KYQH0532Ofd+h66zcGemB0LlO3CqfAZ/3GziB/NcDdnMgl7S9D3H+wLpAHH dRmpHfjNEPnK884w2rNLICXmdI4DzMbeX/VxAl+cE2GUMCmRdhPH3Cd4zGW2Nkmmwvs3MI j9qI65JAC6pYJGTFtgULesORuoi/kClIOKs8UteHaiOe6OAuqy8AaxIs2D9AyetOTaAzad OC4AjvMmAO8DwHQjTHQAmDdsGT8s6pAoN+gICsAKO2pSvHNe7gTTXDUgtz6X7Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780607745; a=rsa-sha256; cv=none; b=mQNfW8fNPMONI23gIX+Wb+YI4rdE/rTLy4PE3Bcrqpw/MMor4aCQ6rhtUyVK9YgKJmS24S h717FAWHHw3Z60820zyEK1gIwOTJ7hR4AZ2R4MXpoNtOIhxFCwHG+qjNaXhw6W6jGr7W9N 3Ez3lG3aSYmj92IFJcjGnSOVVL4qp2Ypn8EFjvzBCbwobu5cOGGoyzt4lpX6xzJgxwrtyT KPOc+AwNy/4Nv68sjG5sudIoe9jQEjAB7YNkCa3CRQZeJ3sYhAWDRwmJWh1NST4fWcqWr3 tWsyv88mc4sTTrtOxPSILIBCAl6tW4KLhrx0g9FRKlupgTCVmbsk0EzlY4O6cg== 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=1780607745; 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=Y2touUI9WTxSPakbAN+5cWIO0Czn5RXLETPo+cJ510U=; b=VZP+oRbBvuR+VtNUa6m07e7GnctQ5GgomEqQnO3mfZcSJD3ZkwKd7LlKsZHtReTNTpzrv2 orFK50B232OZBgUmxeZKbNzEJxJ5I4CZQAtmEZwdFtUNIk0lNkHBJ1xOlp8INN6aXG5FNs XmnBYiAQiEY/wcseo7hLf1fTQqn6a7JXxm7jbqMSFZ+JlorYPrZxST4pDeRvSR6FwXVHJe nXIIgykErlaP/MYnbQcPNcfFo/UhKgQxjcgs4du7mY7iDncYLcpMpL1R2/AHrn6YdAfrH7 LmqI2iIqS3Rz7wMZoUqcwkgxV/I5raDts8qw16oQuHwQTC63CgyKkiA7JquAGg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gWcmd2rTYz1FG0 for ; Thu, 04 Jun 2026 21:15:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3c42d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 04 Jun 2026 21:15:45 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Baptiste Daroussin Subject: git: fdff89256fd9 - main - 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/main X-Git-Reftype: branch X-Git-Commit: fdff89256fd921e40f2fa532895315b1dab6f5e6 Auto-Submitted: auto-generated Date: Thu, 04 Jun 2026 21:15:45 +0000 Message-Id: <6a21eb01.3c42d.589e7e37@gitrepo.freebsd.org> The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=fdff89256fd921e40f2fa532895315b1dab6f5e6 commit fdff89256fd921e40f2fa532895315b1dab6f5e6 Author: Baptiste Daroussin AuthorDate: 2026-06-04 18:59:30 +0000 Commit: Baptiste Daroussin CommitDate: 2026-06-04 18:59:30 +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(). --- 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)