* src/newgrp.c, src/chfn.c, src/groupmems.c, src/usermod.c,
src/userdel.c, src/chpasswd.c, src/grpck.c, src/gpasswd.c, src/groupdel.c, src/chgpasswd.c, src/vipw.c, src/useradd.c, src/su.c, src/groupmod.c, src/passwd.c, src/pwck.c, src/groupadd.c, src/chage.c, src/login.c, src/faillog.c, src/sulogin.c, src/chsh.c, src/pwconv.c: Added splint annotations. * src/userdel.c, src/pwconv.c, src/lastlog.c, src/grpck.c, src/vipw.c, src/groupmod.c, src/passwd.c, src/pwck.c, src/login.c, src/sulogin.c, src/usermod.c: Use return instead of exit at the end of main(). * src/gpasswd.c, src/passwd.c, src/faillog.c: Use the exitcodes.h exit codes. * src/chpasswd.c: Added missing ||. * src/nologin.c: Do not include exitcodes.h. * src/nologin.c: Added brackets. * src/nologin.c: Avoid assignments in comparisons.
This commit is contained in:
@ -63,11 +63,13 @@
|
||||
#include "sgroupio.h"
|
||||
#endif
|
||||
#include "shadowio.h"
|
||||
|
||||
/*
|
||||
* exit status values
|
||||
* for E_GRP_UPDATE and E_NOSPACE (not used yet), other update requests
|
||||
* will be implemented (as documented in the Solaris 2.x man page).
|
||||
*/
|
||||
/*@-exitarg@*/
|
||||
#define E_SUCCESS 0 /* success */
|
||||
#define E_PW_UPDATE 1 /* can't update password file */
|
||||
#define E_USAGE 2 /* invalid command syntax */
|
||||
@ -1792,8 +1794,7 @@ int main (int argc, char **argv)
|
||||
user_gid, gflg ? user_newgid : user_gid);
|
||||
}
|
||||
|
||||
exit (E_SUCCESS);
|
||||
/* NOT REACHED */
|
||||
return E_SUCCESS;
|
||||
}
|
||||
|
||||
#ifdef WITH_SELINUX
|
||||
|
Reference in New Issue
Block a user