* 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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user