aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--more.c2
-rw-r--r--util-linux/more.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/more.c b/more.c
index f8b17b34a..b89143e4d 100644
--- a/more.c
+++ b/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;
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;