From: Eric Andersen Date: Fri, 23 Mar 2001 17:09:15 +0000 (-0000) Subject: Patch to use xfopen from Jeff Garzik X-Git-Tag: 0_51~94 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=21af752b04f6b78aee4e7052d96a88e719010c3c;p=oweals%2Fbusybox.git Patch to use xfopen from Jeff Garzik --- 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;