aboutsummaryrefslogtreecommitdiff
path: root/util-linux/more.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-23 17:09:15 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-23 17:09:15 +0000
commit21af752b04f6b78aee4e7052d96a88e719010c3c (patch)
tree7771bc94c48e714c1e360fbb0c8a195b69029bfc /util-linux/more.c
parentf6aa13d403085b1645b65caae4517a338f4636e6 (diff)
downloadbusybox-w32-21af752b04f6b78aee4e7052d96a88e719010c3c.tar.gz
busybox-w32-21af752b04f6b78aee4e7052d96a88e719010c3c.tar.bz2
busybox-w32-21af752b04f6b78aee4e7052d96a88e719010c3c.zip
Patch to use xfopen from Jeff Garzik
Diffstat (limited to 'util-linux/more.c')
-rw-r--r--util-linux/more.c2
1 files changed, 1 insertions, 1 deletions
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)
91#ifdef BB_FEATURE_USE_TERMIOS 91#ifdef BB_FEATURE_USE_TERMIOS
92 cin = fopen("/dev/tty", "r"); 92 cin = fopen("/dev/tty", "r");
93 if (!cin) 93 if (!cin)
94 cin = fopen("/dev/console", "r"); 94 cin = xfopen("/dev/console", "r");
95 getTermSettings(fileno(cin), &initial_settings); 95 getTermSettings(fileno(cin), &initial_settings);
96 new_settings = initial_settings; 96 new_settings = initial_settings;
97 new_settings.c_cc[VMIN] = 1; 97 new_settings.c_cc[VMIN] = 1;