* src/usermod.c: user_newname and user_newid cannot be used to
test if the username or ID is changed. lflg and uflg should be used instead.
This commit is contained in:
parent
6c4e2931ef
commit
ad694905be
@ -1,3 +1,9 @@
|
||||
2010-03-15 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/usermod.c: user_newname and user_newid cannot be used to
|
||||
test if the username or ID is changed. lflg and uflg should be
|
||||
used instead.
|
||||
|
||||
2010-03-15 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/userdel.c: Avoid perror. Give more verbose warnings.
|
||||
|
@ -1793,7 +1793,7 @@ int main (int argc, char **argv)
|
||||
close_files ();
|
||||
|
||||
#ifdef WITH_TCB
|
||||
if ( ((NULL != user_newname) || (user_newid != -1))
|
||||
if ( (lflg || uflg)
|
||||
&& (!shadowtcb_move (user_newname, user_newid)) ) {
|
||||
exit (E_PW_UPDATE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user