aboutsummaryrefslogtreecommitdiff
path: root/util-linux/more.c
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 /util-linux/more.c
parente0bcce09baff576b1b16b3ffe780b6d91c7710c2 (diff)
downloadbusybox-w32-bbaef66b3f99213f06adf04df6b3e5e61278d75b.tar.gz
busybox-w32-bbaef66b3f99213f06adf04df6b3e5e61278d75b.tar.bz2
busybox-w32-bbaef66b3f99213f06adf04df6b3e5e61278d75b.zip
Consolidate handling of some fopen failures.
Diffstat (limited to 'util-linux/more.c')
-rw-r--r--util-linux/more.c6
1 files changed, 1 insertions, 5 deletions
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)
82 if (argc == 0) { 82 if (argc == 0) {
83 file = stdin; 83 file = stdin;
84 } else 84 } else
85 file = fopen(*argv, "r"); 85 file = xfopen(*argv, "r");
86 86
87 if (file == NULL) {
88 perror(*argv);
89 exit(FALSE);
90 }
91 fstat(fileno(file), &st); 87 fstat(fileno(file), &st);
92 88
93#ifdef BB_FEATURE_USE_TERMIOS 89#ifdef BB_FEATURE_USE_TERMIOS