diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-23 17:09:15 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-23 17:09:15 +0000 |
commit | 21af752b04f6b78aee4e7052d96a88e719010c3c (patch) | |
tree | 7771bc94c48e714c1e360fbb0c8a195b69029bfc | |
parent | f6aa13d403085b1645b65caae4517a338f4636e6 (diff) | |
download | busybox-21af752b04f6b78aee4e7052d96a88e719010c3c.tar.gz |
Patch to use xfopen from Jeff Garzik
-rw-r--r-- | more.c | 2 | ||||
-rw-r--r-- | util-linux/more.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -91,7 +91,7 @@ extern int more_main(int argc, char **argv) #ifdef BB_FEATURE_USE_TERMIOS cin = fopen("/dev/tty", "r"); if (!cin) - cin = fopen("/dev/console", "r"); + cin = xfopen("/dev/console", "r"); getTermSettings(fileno(cin), &initial_settings); new_settings = initial_settings; new_settings.c_cc[VMIN] = 1; diff --git a/util-linux/more.c b/util-linux/more.c index f8b17b34a..b89143e4d 100644 --- a/util-linux/more.c +++ b/util-linux/more.c @@ -91,7 +91,7 @@ extern int more_main(int argc, char **argv) #ifdef BB_FEATURE_USE_TERMIOS cin = fopen("/dev/tty", "r"); if (!cin) - cin = fopen("/dev/console", "r"); + cin = xfopen("/dev/console", "r"); getTermSettings(fileno(cin), &initial_settings); new_settings = initial_settings; new_settings.c_cc[VMIN] = 1; |