From: Eric Andersen Date: Mon, 30 Sep 2002 20:20:20 +0000 (-0000) Subject: Use %m, not strerror, and strerror(err) was broken anyways and should have been X-Git-Tag: 0_60_5~45 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ad082987d0db7dbc5c9f5b9fd3a0e6030da663f2;p=oweals%2Fbusybox.git Use %m, not strerror, and strerror(err) was broken anyways and should have been strerror(errno). Problem noted by Alexey V. Neyman --- 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); }