summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2002-09-30 20:20:20 +0000
committerEric Andersen2002-09-30 20:20:20 +0000
commitad082987d0db7dbc5c9f5b9fd3a0e6030da663f2 (patch)
tree0be33cdcc0bc3ca9aee4fa7670ffb3364c86bd95
parentd9d47c3078e0f94d1fbd445f972a08c52e50417e (diff)
downloadbusybox-ad082987d0db7dbc5c9f5b9fd3a0e6030da663f2.zip
busybox-ad082987d0db7dbc5c9f5b9fd3a0e6030da663f2.tar.gz
Use %m, not strerror, and strerror(err) was broken anyways and should have been
strerror(errno). Problem noted by Alexey V. Neyman <alex.neyman@auriga.ru>
-rw-r--r--shell/lash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/lash.c b/shell/lash.c
index 5c4e97f..e465407 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1261,7 +1261,7 @@ static int pseudo_exec(struct child_prog *child)
/* Do not use perror_msg_and_die() here, since we must not
* call exit() but should call _exit() instead */
- fprintf(stderr, "%s: %s\n", child->argv[0], strerror(err));
+ fprintf(stderr, "%s: %m\n", child->argv[0]);
_exit(EXIT_FAILURE);
}