summaryrefslogtreecommitdiff
path: root/more.c
diff options
context:
space:
mode:
Diffstat (limited to 'more.c')
-rw-r--r--more.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/more.c b/more.c
index caabc44..f95cb48 100644
--- a/more.c
+++ b/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