commit | bbaef66b3f99213f06adf04df6b3e5e61278d75b | [log] [tgz] |
---|---|---|
author | Matt Kraai <kraai@debian.org> | Wed Sep 27 02:43:35 2000 +0000 |
committer | Matt Kraai <kraai@debian.org> | Wed Sep 27 02:43:35 2000 +0000 |
tree | 3838db4158e8e05a753fffd6e87cbbc7946425ad | |
parent | e0bcce09baff576b1b16b3ffe780b6d91c7710c2 [diff] [blame] |
Consolidate handling of some fopen failures.
diff --git a/util-linux/more.c b/util-linux/more.c index caabc44..f95cb48 100644 --- a/util-linux/more.c +++ b/util-linux/more.c
@@ -82,12 +82,8 @@ 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