diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-23 17:09:15 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-23 17:09:15 +0000 |
commit | 3419aea6e304404f0cf4f0f88d57a92a0256754e (patch) | |
tree | 7771bc94c48e714c1e360fbb0c8a195b69029bfc | |
parent | 8538d82a9e226b26b2bb0fa973550007c234bc55 (diff) | |
download | busybox-w32-3419aea6e304404f0cf4f0f88d57a92a0256754e.tar.gz busybox-w32-3419aea6e304404f0cf4f0f88d57a92a0256754e.tar.bz2 busybox-w32-3419aea6e304404f0cf4f0f88d57a92a0256754e.zip |
Patch to use xfopen from Jeff Garzik
git-svn-id: svn://busybox.net/trunk/busybox@2192 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | more.c | 2 | ||||
-rw-r--r-- | util-linux/more.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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; |