* src/userdel.c, src/usermod.c, src/vipw.c, src/useradd.c,

src/pwck.c, src/chage.c, lib/shadowio.c: Explicitly use the
	SHADOWTCB_FAILURE return code instead of 0 or implicit conversion
	to booleans.
This commit is contained in:
nekral-guest
2010-03-18 09:21:27 +00:00
parent 8228f99c36
commit a996fac57b
8 changed files with 36 additions and 26 deletions

View File

@ -1774,8 +1774,9 @@ int main (int argc, char **argv)
#endif /* ACCT_TOOLS_SETUID */
#ifdef WITH_TCB
if (!shadowtcb_set_user (user_name))
if (shadowtcb_set_user (user_name) == SHADOWTCB_FAILURE) {
exit (E_PW_UPDATE);
}
#endif
/*
@ -1794,7 +1795,7 @@ int main (int argc, char **argv)
#ifdef WITH_TCB
if ( (lflg || uflg)
&& (!shadowtcb_move (user_newname, user_newid)) ) {
&& (shadowtcb_move (user_newname, user_newid) == SHADOWTCB_FAILURE) ) {
exit (E_PW_UPDATE);
}
#endif