diff --git a/ChangeLog b/ChangeLog index 4e9943ad..82fbc253 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-17 Nicolas François + + * src/useradd.c: It is no more needed to check that the user's + groups are specified only once in the group file. This is checked + by gr_update(). + 2007-11-16 Nicolas François * lib/commonio.c (next_entry_by_name): New function. diff --git a/src/useradd.c b/src/useradd.c index 53026af9..77f30dd3 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -706,30 +706,6 @@ static void grp_update (void) struct sgrp *nsgrp; #endif - /* - * Test for unique entries of user_groups in /etc/group - * pvrabec@redhat.com - */ - char **user_groups_tmp = user_groups; - - while (*user_groups_tmp) { - int count = 0; - - for (gr_rewind (), grp = gr_next (); grp && count < 2; - grp = gr_next ()) { - if (strcmp (*user_groups_tmp, grp->gr_name) == 0) { - count++; - } - } - if (count > 1) { - fprintf (stderr, - "%s: error not unique group names in group file\n", - Prog); - fail_exit (E_GRP_UPDATE); - } - user_groups_tmp++; - } - /* Locking and opening of the group files moved to open_files() --gafton */ /*