From nobody Thu Nov 19 14:56:28 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 4jVhPS6p8qz719PS for ; Thu, 19 Nov 2026 14:56:28 +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 4jVhPS4BVMz4n2l for ; Thu, 19 Nov 2026 14:56:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795100188; 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=rWL4v8Mz1R4AUUe7KZTSbIXR3lW5tPcuvppRo1E+jZU=; b=psR7Wt10Ac6jYI9HrfCVfI5anBM8nxsHfFJ+nfqvba+0sDqnunTmWxtNYx74bx5B5O0eXP 2vUFd03zkarO7JKyYRTEtTt5uJ8w0jvgckJs+q+ivyF1DNOT2QLK3tqiw16HAOIN/WYP2k 9OBKADVy+zDBIq44ilwNyoVMbvsb4+w2+5KeCLrTW7ueZVEZBy9buCxotbVh0P4x1/xuVO VxksuIZV2/zjfXj1NUUaWtnpmb95dcO2ryMW1/yVn2h1CGXdy3B3eYVQCEGGlmT8NUVqUg lmDbxCF0F3vDirKjQJ+v2JMg++2tVeRwqymuA7iwE+CPYIQiX1s5hnmCdRAlJg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795100188; b=hf6UWqbZJn4aovzAlNrzEthE7mFDcS7/NOwJ0wgAyJk749o6ROmNXdpcaB3zpcFebrAGqW MKdXlR2Z4pChCj8jRieOyQlTC6+WQZOSEB4w8YsENs17+6Hm8slX0BJN3CZbFJ7cHONtgF YicsuftO2p9unNmk2BEvfAZG+1KMEiBNcQelB4GIUKOS2KSfgf0Xk+nSB3c4ImeX6HhN2M qlUe1hjIJNDT2+n+O2Z+55S3aA6vXjQbYjhBqAvww/xr88JL69anHV0LfyPvh2R3ohdUVp Paxt7bB+KmbC1v1FwwT9ODAWWNkWTWPkU0dTolUNQa1HjAifOWGwMOQLavlDzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795100188; 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=rWL4v8Mz1R4AUUe7KZTSbIXR3lW5tPcuvppRo1E+jZU=; b=h5Vey24ms44mkh3pXJzOMw8EZefTe2Y2bmXlsdMQhrSIyEKa/f/gfs01zhyateL/tdcoZd 06Jnj1oL0hlSqbFKAboJvm7no754mdh50Cq+AABSTDXyfbxaVAu/6EX5AzfI5gWtFibNwV VUeJdNg2nj/cy68/BuVvVWLPivXOo1dqmUBnvhjM8SkWv0lhjfGatBOUjWVolZXg5FiTMR 8Q54hqcYpau0xYkzSB4ky9BK/6zEgea18KVstuybPdDokg8xgmo7RHWcKumQG+XioZ7tpN sMWo73pM1/9ukd/Xt5XvYdwHG/AhHm0/fV3I5OuMPZL7G6XqSRx+Rb3fqZTaSw== 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 4jVhPS3srZz15W4 for ; Thu, 19 Nov 2026 14:56:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 6f42 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 19 Nov 2026 14:56:28 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 7e11a18e74ba - main - nuageinit: Use -n with pw usershow List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches 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: 7e11a18e74baf3fe6491b36249f8dfea8230d842 Auto-Submitted: auto-generated Date: Thu, 19 Nov 2026 14:56:28 +0000 Message-Id: <6aff0e1c.6f42.120b85f3@gitrepo.freebsd.org> The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=7e11a18e74baf3fe6491b36249f8dfea8230d842 commit 7e11a18e74baf3fe6491b36249f8dfea8230d842 Author: Ed Maste AuthorDate: 2026-11-19 14:32:51 +0000 Commit: Ed Maste CommitDate: 2026-11-19 14:56:10 +0000 nuageinit: Use -n with pw usershow We previously used `"pw usershow " .. shell_escape(pwd.name)`, which returns root's info for a user named `0`. Add `-n` to explicitly perform a name lookup. Reported by: llm-postcr Reviewed by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61753 --- libexec/nuageinit/nuage.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/nuageinit/nuage.lua b/libexec/nuageinit/nuage.lua index 5dc8c5d30110..c69155b0aae7 100644 --- a/libexec/nuageinit/nuage.lua +++ b/libexec/nuageinit/nuage.lua @@ -322,7 +322,7 @@ local function adduser(pwd) if root then cmd = cmd .. "-R " .. root .. " " end - local f = io.popen(cmd .. " usershow " .. shell_escape(pwd.name) .. " -7 2> /dev/null") + local f = io.popen(cmd .. " usershow -n " .. shell_escape(pwd.name) .. " -7 2> /dev/null") local pwdstr = f:read("*a") f:close() if pwdstr:len() ~= 0 then