aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-04-25 05:27:12 +0000
committervapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-04-25 05:27:12 +0000
commitee3b2893c6b0bf5ffb6dd3ec8b0957f13341fc3c (patch)
tree5c4ca08ab521dee0da7c2ec543e21d8656bd8029
parentbc88556f14f3b8ba1115b2e9687b059bade60865 (diff)
downloadbusybox-w32-ee3b2893c6b0bf5ffb6dd3ec8b0957f13341fc3c.tar.gz
busybox-w32-ee3b2893c6b0bf5ffb6dd3ec8b0957f13341fc3c.tar.bz2
busybox-w32-ee3b2893c6b0bf5ffb6dd3ec8b0957f13341fc3c.zip
use a generic error message
git-svn-id: svn://busybox.net/trunk/busybox@10180 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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,
169 (de->d_name[1] == '.' && de->d_name[2] == '\0'))) { 169 (de->d_name[1] == '.' && de->d_name[2] == '\0'))) {
170 char *path; 170 char *path;
171 if (asprintf(&path, "%s/%s", dir_name, de->d_name) == -1) 171 if (asprintf(&path, "%s/%s", dir_name, de->d_name) == -1)
172 bb_error_msg_and_die("asprintf failed"); 172 bb_error_msg_and_die(bb_msg_memory_exhausted);
173 change_attributes(path); 173 change_attributes(path);
174 free(path); 174 free(path);
175 } 175 }
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,
108 else 108 else
109 i = asprintf(&path, "%s/%s", dir_name, de->d_name); 109 i = asprintf(&path, "%s/%s", dir_name, de->d_name);
110 if (i == -1) 110 if (i == -1)
111 bb_perror_msg_and_die("asprintf failed"); 111 bb_error_msg_and_die(bb_msg_memory_exhausted);
112 112
113 if (LSTAT(path, &st) == -1) 113 if (LSTAT(path, &st) == -1)
114 bb_perror_msg(path); 114 bb_perror_msg(path);