* 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:
@@ -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>
|
2010-03-15 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/userdel.c: Avoid perror. Give more verbose warnings.
|
* src/userdel.c: Avoid perror. Give more verbose warnings.
|
||||||
|
@@ -1793,7 +1793,7 @@ int main (int argc, char **argv)
|
|||||||
close_files ();
|
close_files ();
|
||||||
|
|
||||||
#ifdef WITH_TCB
|
#ifdef WITH_TCB
|
||||||
if ( ((NULL != user_newname) || (user_newid != -1))
|
if ( (lflg || uflg)
|
||||||
&& (!shadowtcb_move (user_newname, user_newid)) ) {
|
&& (!shadowtcb_move (user_newname, user_newid)) ) {
|
||||||
exit (E_PW_UPDATE);
|
exit (E_PW_UPDATE);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user