mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 16:31:24 +00:00
Patch to use xfopen from Jeff Garzik
This commit is contained in:
parent
f6aa13d403
commit
21af752b04
2
more.c
2
more.c
@ -91,7 +91,7 @@ extern int more_main(int argc, char **argv)
|
|||||||
#ifdef BB_FEATURE_USE_TERMIOS
|
#ifdef BB_FEATURE_USE_TERMIOS
|
||||||
cin = fopen("/dev/tty", "r");
|
cin = fopen("/dev/tty", "r");
|
||||||
if (!cin)
|
if (!cin)
|
||||||
cin = fopen("/dev/console", "r");
|
cin = xfopen("/dev/console", "r");
|
||||||
getTermSettings(fileno(cin), &initial_settings);
|
getTermSettings(fileno(cin), &initial_settings);
|
||||||
new_settings = initial_settings;
|
new_settings = initial_settings;
|
||||||
new_settings.c_cc[VMIN] = 1;
|
new_settings.c_cc[VMIN] = 1;
|
||||||
|
@ -91,7 +91,7 @@ extern int more_main(int argc, char **argv)
|
|||||||
#ifdef BB_FEATURE_USE_TERMIOS
|
#ifdef BB_FEATURE_USE_TERMIOS
|
||||||
cin = fopen("/dev/tty", "r");
|
cin = fopen("/dev/tty", "r");
|
||||||
if (!cin)
|
if (!cin)
|
||||||
cin = fopen("/dev/console", "r");
|
cin = xfopen("/dev/console", "r");
|
||||||
getTermSettings(fileno(cin), &initial_settings);
|
getTermSettings(fileno(cin), &initial_settings);
|
||||||
new_settings = initial_settings;
|
new_settings = initial_settings;
|
||||||
new_settings.c_cc[VMIN] = 1;
|
new_settings.c_cc[VMIN] = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user