From nobody Fri Nov 20 13:47:36 2026 X-Original-To: dev-commits-src-main@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 4jWGqX6YSCz71mTX for ; Fri, 20 Nov 2026 13:47:36 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jWGqX5mPwz4S5m for ; Fri, 20 Nov 2026 13:47:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795182456; 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=6PY+jOVcp5I5kMkc9Q9GbUdKMNUPIakHRn9VgYGbcqk=; b=jWMwPiAecFOJ0kVY+j0kWqGAbSBl19GtdbU0MCNMZ44wvy8q5ffYh84n1elftEOsgrCQf1 6+3Vv465iLt6KfV3R6aDtu8p+LThYUZJvwNG0nMuQeBve1SBBc8TR9Yq6vWH3tgX+sRvU0 JsTQAJqr0EMVnw7jBE3LPN277Hn6/R8JqDizqqs161r2764jn4Ya/7yKKPl0UManvAiFUy uXba/2NQylvf+O7B3ved8jSYjP0DpylT5Bcinnu0EZBEQ9oDQ+FwaPPXQDEqcVAKB3xob8 f7cTsuk+XqX9crxhRDy3qRe48BJudtqw/9drqS4HlIG3EXCpIpOn0AIa0UkvTA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795182456; b=Ad6MvLNG/toUTl6QA72xoBJ4L6FrQz9vgdcIy81aGwQVdj6MrHhGYzaOEKJFz7GV9lfZBC 2UN7tA3aLznwExayF/zNcAr3VVFrTjx+woyHgZZISM2CNPR7N1P7i2gaGD9kN0N3YD9zUt mhG1FdnFwVM8FcI6Xx9p8B0PMybHWcG4zRBnyMmkG0OxOByW24SOvFBwugG51Jjv7ai07e p3CWX6WEV6gAkHpuZD9MPyiUT362u5t+oAQABOxkxWtMObIlqmzC4b9m0t6P87MK8Dcbx9 WXR4hXUiG4xX9xIH9EA50OmB2g1NL/G5v/nrYTyax7ebW9r+0AZuP7Ws3Ck1rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795182456; 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=6PY+jOVcp5I5kMkc9Q9GbUdKMNUPIakHRn9VgYGbcqk=; b=o7GDIlqb2Lu/sWJsBqsJjkEh7G5wW/c9o4nxcJE5bpxmSV2ZOWrGR+AnV4XZFFFwI8Lhd1 6Ftic0Fb63TOotAokp6U/8Z8TNrGEFTv8Yfg/8SyO9PBgUOL73tTQXvAJG9sTJzp8ySW5b KkRaXDHFIWORzofGEqDQZu5q5cRxS0+YEq3VWgmZ1g4eSLAsKshwCp6g/7hsN2WDc19kv/ SsCAnxm92eTqF7B7UiFynAs+wiqiTGXw8uZwibBCGLRY6gUUKXczMicaGgYcMl/AjwwJdz 2Mbs9xdFVrH0GVw5Im83C1KzhmMvFFSbol6kWulJp8y9IGodsqEQC2b4bPK04A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jWGqX5QwVzrX3 for ; Fri, 20 Nov 2026 13:47:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id d0c9 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 20 Nov 2026 13:47:36 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: e82b8378de19 - main - nuageinit: Also add -n to pw usermod and pw groupshow List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org List-Id: Commit messages for the main branch of the src repository 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e82b8378de196df38c5de40ec65d6b5f99e2b5e6 Auto-Submitted: auto-generated Date: Fri, 20 Nov 2026 13:47:36 +0000 Message-Id: <6b004f78.d0c9.111c4426@gitrepo.freebsd.org> The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=e82b8378de196df38c5de40ec65d6b5f99e2b5e6 commit e82b8378de196df38c5de40ec65d6b5f99e2b5e6 Author: Ed Maste AuthorDate: 2026-11-19 15:50:31 +0000 Commit: Ed Maste CommitDate: 2026-11-20 13:47:24 +0000 nuageinit: Also add -n to pw usermod and pw groupshow Commit 7e11a18e74ba ("nuageinit: Use -n with pw usershow") fixed a bug wtih `pw usershow` and numeric user names. Fix the smae issue with `pw usermod` and `pw groupshow`. Reported by: llm-postcr Reviewed by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61761 --- libexec/nuageinit/nuage.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/nuageinit/nuage.lua b/libexec/nuageinit/nuage.lua index c69155b0aae7..df8fb3223946 100644 --- a/libexec/nuageinit/nuage.lua +++ b/libexec/nuageinit/nuage.lua @@ -420,7 +420,7 @@ local function addgroup(grp) if root then cmd = cmd .. "-R " .. root .. " " end - local f = io.popen(cmd .. " groupshow " .. shell_escape(grp.name) .. " 2> /dev/null") + local f = io.popen(cmd .. " groupshow -n " .. shell_escape(grp.name) .. " 2> /dev/null") local grpstr = f:read("*a") f:close() if grpstr:len() ~= 0 then @@ -673,7 +673,7 @@ local function exec_change_password(user, password, type, expire) postcmd = " -w random" end end - cmd = cmd .. "usermod " .. shell_escape(user) .. postcmd + cmd = cmd .. "usermod -n " .. shell_escape(user) .. postcmd if expire then cmd = cmd .. " -p 1" else