aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-09-27 02:43:35 +0000
committerMatt Kraai <kraai@debian.org>2000-09-27 02:43:35 +0000
commitbbaef66b3f99213f06adf04df6b3e5e61278d75b (patch)
tree3838db4158e8e05a753fffd6e87cbbc7946425ad /shell
parente0bcce09baff576b1b16b3ffe780b6d91c7710c2 (diff)
downloadbusybox-bbaef66b3f99213f06adf04df6b3e5e61278d75b.tar.gz
Consolidate handling of some fopen failures.
Diffstat (limited to 'shell')
-rw-r--r--shell/lash.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/shell/lash.c b/shell/lash.c
index 77efc6aac..b10614259 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1447,10 +1447,7 @@ int shell_main(int argc_l, char **argv_l)
fprintf(stdout, "Enter 'help' for a list of built-in commands.\n\n");
} else if (local_pending_command==NULL) {
//fprintf(stdout, "optind=%d argv[optind]='%s'\n", optind, argv[optind]);
- input = fopen(argv[optind], "r");
- if (!input) {
- fatalError("%s: %s\n", argv[optind], strerror(errno));
- }
+ input = xfopen(argv[optind], "r");
}
/* initialize the cwd -- this is never freed...*/