From 883ad0f7f5341134101a74d230445d6ed704a914 Mon Sep 17 00:00:00 2001 From: kraai Date: Wed, 27 Sep 2000 02:43:35 +0000 Subject: Consolidate handling of some fopen failures. git-svn-id: svn://busybox.net/trunk/busybox@1136 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- lash.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lash.c') diff --git a/lash.c b/lash.c index 77efc6aac..b10614259 100644 --- a/lash.c +++ b/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...*/ -- cgit v1.2.3-55-g6feb