* 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:
nekral-guest 2010-03-16 19:14:37 +00:00
parent 6c4e2931ef
commit ad694905be
2 changed files with 7 additions and 1 deletions

View File

@ -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.

View File

@ -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);
}