diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-09-30 20:20:20 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-09-30 20:20:20 +0000 |
commit | ad082987d0db7dbc5c9f5b9fd3a0e6030da663f2 (patch) | |
tree | 0be33cdcc0bc3ca9aee4fa7670ffb3364c86bd95 | |
parent | d9d47c3078e0f94d1fbd445f972a08c52e50417e (diff) | |
download | busybox-w32-ad082987d0db7dbc5c9f5b9fd3a0e6030da663f2.tar.gz busybox-w32-ad082987d0db7dbc5c9f5b9fd3a0e6030da663f2.tar.bz2 busybox-w32-ad082987d0db7dbc5c9f5b9fd3a0e6030da663f2.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1261 | 1261 | ||
1262 | /* Do not use perror_msg_and_die() here, since we must not | 1262 | /* Do not use perror_msg_and_die() here, since we must not |
1263 | * call exit() but should call _exit() instead */ | 1263 | * call exit() but should call _exit() instead */ |
1264 | fprintf(stderr, "%s: %s\n", child->argv[0], strerror(err)); | 1264 | fprintf(stderr, "%s: %m\n", child->argv[0]); |
1265 | _exit(EXIT_FAILURE); | 1265 | _exit(EXIT_FAILURE); |
1266 | } | 1266 | } |
1267 | 1267 | ||