From nobody Wed Jul 19 13:42:05 2023 X-Original-To: bugs@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 4R5cSf1fyNz4nyhf for ; Wed, 19 Jul 2023 13:42:26 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R5cSd58B6z4KgQ for ; Wed, 19 Jul 2023 13:42:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689774145; 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: in-reply-to:in-reply-to:references:references; bh=//TeVSfswIsIKi43uXpeZwlMFqU1GLSmnXiqCtR7THw=; b=vGjpi8e4T/O0JbqAo59Kb2reA2zmGq9/wS+y+B3Chx/DzwJhJ+GV4/rN9HqYMhFTMzq34F MbAXPDRKW/xCB1KBgit3LqFk4sAo28Z+kQn7F2qBr8xLeknq0Tp63/Ud9AyDNNRW6HD899 X/F7Rl+Vqr1UY6scT+K3QXprLdF08RVw5rsfB5s5CrAe0BWUROK5kZqZGN58yvVjwetrbX CHgoyd3E17YyeJbzeYDQtGDL8Ckqt3KvvgbY7vaMgMjlIbzLE6zQwY8oupZh77L5xhsgfP jF2/npeaSnis/pugJNMusOl89IC/iFu93DO2AQJGJv17e/VwjrYS6foq9gHPQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689774145; a=rsa-sha256; cv=none; b=Qg0jNYDCQTVzVx8nllU0AjgHwV5JbriLr4qpj+tOW3C0SvD45meScx7DXMZvAFUBmta2xo Gs30kFeKPYto/AGLShLrtmFa1bkZCzUrseXSeu/+tsAe4FkyYPi87+0OJjPSCrNv1ws3ql 1JDA1ZOlz4M/AoMW2urQiPOy2Vi4EN0Vq/oT0L+i8FcPHiaj6QR/Cbs5KabW5hERSvGWOe XLtVP0V6HR18JoSuaAuUJ36NAA2roUPtPasm3Rg8Q7HnQmC3A7TumXy2eQ8CbL4ZYJmKaw MmEGWXK5Fn+tAdkT0HjD+g+DvX84vKYA6RAcOaFpk1TuH5tH4VB25YupQdilqw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R5cSF0Yzmzq5L for ; Wed, 19 Jul 2023 13:42:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 36JDg54A016381 for ; Wed, 19 Jul 2023 13:42:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36JDg5Qt016380 for bugs@FreeBSD.org; Wed, 19 Jul 2023 13:42:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 238995] adduser does not check for pre-existing user field entries in /etc/group Date: Wed, 19 Jul 2023 13:42:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238995 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D1a8d37b8cffc805626a3954496845b7a1= 4a45bea commit 1a8d37b8cffc805626a3954496845b7a14a45bea Author: Naman Sood AuthorDate: 2023-07-19 13:06:06 +0000 Commit: Joseph Mingrone CommitDate: 2023-07-19 13:40:53 +0000 pw: Use existing group entry, even if it already has members Fix the following problem: 1. A nonexistent user, someuser, is added to /etc/group as someuser:*:12345:someuser. 2. someuser is then created with the default login group. A second group entry for someuser will be created. someuser:*:12345:someuser someuser:*:12346: With this fix, the existing group entry will be used. PR: 238995 Reviewed by: bapt, jrm Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D41057 usr.sbin/pw/pw_user.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=