From 22fbf40482871823d4d2ef0dc9c6d279fc5d6ded Mon Sep 17 00:00:00 2001 From: andersen Date: Mon, 30 Sep 2002 20:20:20 +0000 Subject: Use %m, not strerror, and strerror(err) was broken anyways and should have been strerror(errno). Problem noted by Alexey V. Neyman git-svn-id: svn://busybox.net/trunk/busybox@5611 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- shell/lash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/lash.c b/shell/lash.c index 5c4e97f4a..e4654071d 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); } -- cgit v1.2.3-55-g6feb