aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Mike Frysinger <vapier@gentoo.org>2005-04-25 05:27:12 +0000
committerGravatar Mike Frysinger <vapier@gentoo.org>2005-04-25 05:27:12 +0000
commitd6a8f5f0d0572b7e8bb975cdbba1e581931d12d6 (patch)
tree5c4ca08ab521dee0da7c2ec543e21d8656bd8029
parentc238a97a9e90734da15163ba54d6862bb8e360e9 (diff)
downloadbusybox-d6a8f5f0d0572b7e8bb975cdbba1e581931d12d6.tar.gz
busybox-d6a8f5f0d0572b7e8bb975cdbba1e581931d12d6.tar.bz2
use a generic error message
-rw-r--r--e2fsprogs/chattr.c2
-rw-r--r--e2fsprogs/lsattr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/e2fsprogs/chattr.c b/e2fsprogs/chattr.c
index 07cee8f7c..5ba458934 100644
--- a/e2fsprogs/chattr.c
+++ b/e2fsprogs/chattr.c
@@ -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'))) {
char *path;
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);
free(path);
}
diff --git a/e2fsprogs/lsattr.c b/e2fsprogs/lsattr.c
index d3896637d..62b9535c2 100644
--- a/e2fsprogs/lsattr.c
+++ b/e2fsprogs/lsattr.c
@@ -108,7 +108,7 @@ static int lsattr_dir_proc(const char *dir_name, struct dirent *de,
else
i = asprintf(&path, "%s/%s", dir_name, de->d_name);
if (i == -1)
- bb_perror_msg_and_die("asprintf failed");
+ bb_error_msg_and_die(bb_msg_memory_exhausted);
if (LSTAT(path, &st) == -1)
bb_perror_msg(path);