From 311f4baa2730e45c7beafe43c89afb30d43b4b56 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 17 Nov 2007 23:11:02 +0000 Subject: [PATCH] Do not document the behavior compared to old versions. --- ChangeLog | 5 +++++ src/useradd.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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.