Remove race in enewuser, enewgroup
We had an obvious TOCTOU problem in enewuser and enewgroup.
The code would check to see if a user or group was already
created early in these functions, then do a bunch of work
and check again. If the account was created in the meantime,
it'd barf on the second check. This check is redundant anyway
so remove it.
TEST=remove accounts for a package and emerge it again
(cherry picked from commit c6778c492f5e75819c316e75f2aae44f33534e4e)
Reviewed-by: Chris Masone <firstname.lastname@example.org>
Tested-by: Mike Frysinger <email@example.com>
1 file changed