From 3419aea6e304404f0cf4f0f88d57a92a0256754e Mon Sep 17 00:00:00 2001 From: andersen Date: Fri, 23 Mar 2001 17:09:15 +0000 Subject: Patch to use xfopen from Jeff Garzik git-svn-id: svn://busybox.net/trunk/busybox@2192 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- more.c | 2 +- util-linux/more.c | 2 +- 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) #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; -- cgit v1.2.3-55-g6feb