From bbaef66b3f99213f06adf04df6b3e5e61278d75b Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 27 Sep 2000 02:43:35 +0000 Subject: Consolidate handling of some fopen failures. --- util-linux/more.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'util-linux') diff --git a/util-linux/more.c b/util-linux/more.c index caabc44e2..f95cb48ad 100644 --- a/util-linux/more.c +++ b/util-linux/more.c @@ -82,12 +82,8 @@ extern int more_main(int argc, char **argv) if (argc == 0) { file = stdin; } else - file = fopen(*argv, "r"); + file = xfopen(*argv, "r"); - if (file == NULL) { - perror(*argv); - exit(FALSE); - } fstat(fileno(file), &st); #ifdef BB_FEATURE_USE_TERMIOS -- cgit v1.2.3