Don't call fatal/fatalx in common/*.c

This commit is contained in:
Todd C. Miller
2014-03-25 16:16:10 -06:00
parent 3cdb944de4
commit 250e8e750c
5 changed files with 48 additions and 37 deletions

View File

@@ -887,7 +887,10 @@ exec_setup(struct command_details *details, const char *ptyname, int ptyfd)
#endif /* HAVE_PRIV_SET */
#ifdef HAVE_GETUSERATTR
aix_prep_user(details->pw->pw_name, ptyname ? ptyname : user_details.tty);
if (aix_prep_user(details->pw->pw_name, ptyname ? ptyname : user_details.tty) != 0) {
/* error message displayed by aix_prep_user */
goto done;
}
#endif
#ifdef HAVE_LOGIN_CAP_H
if (details->login_class) {