[Bug 238995] adduser does not check for pre-existing user field entries in /etc/group
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Jul 2023 13:42:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238995
--- Comment #5 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=1a8d37b8cffc805626a3954496845b7a14a45bea
commit 1a8d37b8cffc805626a3954496845b7a14a45bea
Author: Naman Sood <mail@nsood.in>
AuthorDate: 2023-07-19 13:06:06 +0000
Commit: Joseph Mingrone <jrm@FreeBSD.org>
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(-)
--
You are receiving this mail because:
You are the assignee for the bug.