Change some fatalx(NULL) that should be fatal(NULL).

This commit is contained in:
Todd C. Miller
2013-08-15 13:06:49 -06:00
parent 4928c8c72e
commit 85fc5792d4
5 changed files with 16 additions and 16 deletions

View File

@@ -467,7 +467,7 @@ get_user_info(struct user_details *ud)
user_info[i] = fmt_string("user", pw->pw_name);
if (user_info[i] == NULL)
fatalx(NULL);
fatal(NULL);
ud->username = user_info[i] + sizeof("user=") - 1;
/* Stash user's shell for use with the -s flag; don't pass to plugin. */
@@ -493,14 +493,14 @@ get_user_info(struct user_details *ud)
if (getcwd(cwd, sizeof(cwd)) != NULL) {
user_info[++i] = fmt_string("cwd", cwd);
if (user_info[i] == NULL)
fatalx(NULL);
fatal(NULL);
ud->cwd = user_info[i] + sizeof("cwd=") - 1;
}
if ((cp = get_process_ttyname()) != NULL) {
user_info[++i] = fmt_string("tty", cp);
if (user_info[i] == NULL)
fatalx(NULL);
fatal(NULL);
ud->tty = user_info[i] + sizeof("tty=") - 1;
efree(cp);
}
@@ -511,7 +511,7 @@ get_user_info(struct user_details *ud)
strlcpy(host, "localhost", sizeof(host));
user_info[++i] = fmt_string("host", host);
if (user_info[i] == NULL)
fatalx(NULL);
fatal(NULL);
ud->host = user_info[i] + sizeof("host=") - 1;
get_ttysize(&ud->ts_lines, &ud->ts_cols);
@@ -739,7 +739,7 @@ command_info_to_details(char * const info[], struct command_details *details)
#endif
details->pw = getpwuid(details->euid);
if (details->pw != NULL && (details->pw = pw_dup(details->pw)) == NULL)
fatalx(NULL);
fatal(NULL);
#ifdef HAVE_SETAUTHDB
aix_restoreauthdb();
#endif