aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-09-30 20:20:20 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-09-30 20:20:20 +0000
commit22fbf40482871823d4d2ef0dc9c6d279fc5d6ded (patch)
tree0be33cdcc0bc3ca9aee4fa7670ffb3364c86bd95 /shell
parent149c26e8b58c1e1a403f2f4eaaffa9dd2d33f405 (diff)
downloadbusybox-w32-22fbf40482871823d4d2ef0dc9c6d279fc5d6ded.tar.gz
busybox-w32-22fbf40482871823d4d2ef0dc9c6d279fc5d6ded.tar.bz2
busybox-w32-22fbf40482871823d4d2ef0dc9c6d279fc5d6ded.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> git-svn-id: svn://busybox.net/trunk/busybox@5611 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r--shell/lash.c2
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