[BusyBox-cvs] svn commit: trunk/busybox/e2fsprogs
vapier at busybox.net
vapier at busybox.net
Mon Apr 25 05:27:13 UTC 2005
Author: vapier
Date: 2005-04-24 23:27:12 -0600 (Sun, 24 Apr 2005)
New Revision: 10180
Log:
use a generic error message
Modified:
trunk/busybox/e2fsprogs/chattr.c
trunk/busybox/e2fsprogs/lsattr.c
Changeset:
Modified: trunk/busybox/e2fsprogs/chattr.c
===================================================================
--- trunk/busybox/e2fsprogs/chattr.c 2005-04-25 05:24:35 UTC (rev 10179)
+++ trunk/busybox/e2fsprogs/chattr.c 2005-04-25 05:27:12 UTC (rev 10180)
@@ -169,7 +169,7 @@
(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);
}
Modified: trunk/busybox/e2fsprogs/lsattr.c
===================================================================
--- trunk/busybox/e2fsprogs/lsattr.c 2005-04-25 05:24:35 UTC (rev 10179)
+++ trunk/busybox/e2fsprogs/lsattr.c 2005-04-25 05:27:12 UTC (rev 10180)
@@ -108,7 +108,7 @@
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);
More information about the busybox-cvs
mailing list