use a generic error message

This commit is contained in:
Mike Frysinger 2005-04-25 05:27:12 +00:00
parent c238a97a9e
commit d6a8f5f0d0
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ static int chattr_dir_proc(const char *dir_name, struct dirent *de,
(de->d_name[1] == '.' && de->d_name[2] == '\0'))) { (de->d_name[1] == '.' && de->d_name[2] == '\0'))) {
char *path; char *path;
if (asprintf(&path, "%s/%s", dir_name, de->d_name) == -1) if (asprintf(&path, "%s/%s", dir_name, de->d_name) == -1)
bb_error_msg_and_die("asprintf failed"); bb_error_msg_and_die(bb_msg_memory_exhausted);
change_attributes(path); change_attributes(path);
free(path); free(path);
} }

View File

@ -108,7 +108,7 @@ static int lsattr_dir_proc(const char *dir_name, struct dirent *de,
else else
i = asprintf(&path, "%s/%s", dir_name, de->d_name); i = asprintf(&path, "%s/%s", dir_name, de->d_name);
if (i == -1) if (i == -1)
bb_perror_msg_and_die("asprintf failed"); bb_error_msg_and_die(bb_msg_memory_exhausted);
if (LSTAT(path, &st) == -1) if (LSTAT(path, &st) == -1)
bb_perror_msg(path); bb_perror_msg(path);