From nobody Thu May 9 13:17:21 2024 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 4VZsxY4bTkz5Jfty for ; Thu, 09 May 2024 13:17:21 +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 4VZsxY2W8Yz58r1 for ; Thu, 9 May 2024 13:17:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715260641; a=rsa-sha256; cv=none; b=lM1EtJ0KBwPn/S479HXgg9D8uuTfaM2MQw0hG9Gcq19o93RNK1MGUeEr2t9Z4UFE62sN8s 1IB0D30KnoMiOIKviv6HFFdcjGqL2kfssj1sYcS1aKVvlJNCEm4LX6dolr0/oStvVvqYL1 pOUobDpqMYNY+ZR/UEX4f+p9KKHHigxgBfM7mPYBzTzwfhqes9I6jo83kEjo2owrK+8LXx uHYCieuK0CQM/GnrjodrvWF+I6Ub5N0e8CqfVsUKD63f4gkGRIYr4JN9Emu82o8zhtEUoi 8hgUqiaT4Z+lm89yHze6xUizM9sC/xDm5F/ZizDVcsnqpt7KNyMNp4tbixRetw== 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=1715260641; 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=MqksZFKXtc2V1fCoYd9SsP0SU9s84QqZjzx8Gpexfxc=; b=jlNn+XmIpSIpZXvOAUfjWGmWaOS1LL7XP4Ed4Q1LacFIcST2oYMehPkKUS22Z/uUZia4SB j7mseHSVfQlf+Pa7vH58I7fUBQ33uXOxuWifItVCFD1oAPoqlmwkJqimdJgnwva4LsjAZP 59Pc9Ldopu8Nhp0Xo4rBiAeEv+iLjXoOefUFFYfTY9Q4Pw1NVft8U3W7OF4+JaXKvX3iWp wCfTFDgp7ZCxZKjgglFmFf8lHgRSYqofKfZ2bWF6QaXzCFoJ7HPkc1GT8Wrmpw886dFWfj YmoRoHratFxazHBTfi3PQXU4wsoyp2iYIRjuf3rE5adPxju4buUGFxrPflkwaQ== 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 4VZsxY1SgTz19Ml for ; Thu, 9 May 2024 13:17:21 +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 449DHLxN089734 for ; Thu, 9 May 2024 13:17:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 449DHLcf089733 for bugs@FreeBSD.org; Thu, 9 May 2024 13:17:21 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: Thu, 09 May 2024 13:17:21 +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: Closed X-Bugzilla-Resolution: FIXED 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 #9 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D3532d9c66ecefd356ec670f014e464753= 7b59ef1 commit 3532d9c66ecefd356ec670f014e4647537b59ef1 Author: Naman Sood AuthorDate: 2023-07-19 12:44:21 +0000 Commit: Dag-Erling Sm=C3=B8rgrav CommitDate: 2024-05-09 11:04:30 +0000 pw: Ensure group membership is not duplicated Fix the following problem: 1. A nonexistent user, someuser, is added to somegroup in /etc/group. 2. someuser is then created with membership in somegroup. The entry for somegroup in /etc/group will then contain somegroup:*:12345:someuser,someuser With this fix, the entry will be somegroup:*:12345:someuser PR: 238995 Reviewed by: bapt, jrm Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D41076 (cherry picked from commit 17839f45d86e79065a65ad3e2522dd69b29a652c) usr.sbin/pw/pw.h | 2 ++ usr.sbin/pw/pw_group.c | 2 +- usr.sbin/pw/pw_user.c | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=