From ad082987d0db7dbc5c9f5b9fd3a0e6030da663f2 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 30 Sep 2002 20:20:20 +0000 Subject: [PATCH] Use %m, not strerror, and strerror(err) was broken anyways and should have been strerror(errno). Problem noted by Alexey V. Neyman --- shell/lash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.25.1