* src/usermod.c: Do not call usr_update() if it will have no
effects. This avoid checking if the user exists in the local passwd file if not necessary, and thus allow to add LDAP users to local groups. (The user is already checked against the system configuration with getpwnam()). Thanks to Dan Kopecek.
This commit is contained in:
1 parent
62c8e79676
commit
22fb4fe019
3 files changed
+15
-1
No files matched your search
+4
-1
@@ -1649,7 +1649,10 @@ int main (int argc, char **argv)
|
||||
* change the home directory, then close and update the files.
|
||||
*/
|
||||
open_files ();
|
||||
usr_update ();
|
||||
if ( cflg || dflg || eflg || fflg || gflg || Lflg || lflg || pflg
|
||||
|| sflg || uflg || Uflg) {
|
||||
usr_update ();
|
||||
}
|
||||
if (Gflg || lflg) {
|
||||
grp_update ();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user