diff --git a/ChangeLog b/ChangeLog index 5719ea51..ec521091 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-18 Nicolas François + + * src/useradd.c: Do not document the behavior compared to old + versions. + 2007-11-17 Nicolas François * man/usermod.8.xml: Document the differences between locking an diff --git a/src/useradd.c b/src/useradd.c index 4527a573..8d1d0963 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -695,6 +695,11 @@ static void new_spent (struct spwd *spent) * * grp_update() takes the secondary group set given in user_groups * and adds the user to each group given by that set. + * + * The group files are opened and locked in open_files(). + * + * close_files() should be called afterwards to commit the changes + * and unlocking the group files. */ static void grp_update (void) { @@ -706,8 +711,6 @@ static void grp_update (void) struct sgrp *nsgrp; #endif - /* Locking and opening of the group files moved to open_files() --gafton */ - /* * Scan through the entire group file looking for the groups that * the user is a member of.