mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-19 13:04:05 +02:00
13e14a7df8
stty broken in busybox 1.4.1, added patch with fixed code from BB SVN. This will need to be removed when 1.4.2 is released. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6559 3c298f89-4303-0410-b956-a3cf2f4a3e73
27 lines
632 B
Diff
27 lines
632 B
Diff
--- build_arm/busybox-1.4.1/coreutils/stty.c.old 2007-03-13 12:59:49.000000000 +0100
|
|
+++ build_arm/busybox-1.4.1/coreutils/stty.c 2007-03-13 07:51:38.000000000 +0100
|
|
@@ -568,10 +568,11 @@
|
|
NULL
|
|
};
|
|
int i = index_in_str_array(params, name);
|
|
- if (i) {
|
|
- if (!(i == 4 || i == 5))
|
|
- i |= 0x80;
|
|
- }
|
|
+ if (i < 0)
|
|
+ return 0;
|
|
+ if (!(i == 4 || i == 5))
|
|
+ i |= 0x80;
|
|
+
|
|
return i;
|
|
}
|
|
|
|
@@ -907,6 +908,7 @@
|
|
#define STTY_verbose_output (1<<2)
|
|
#define STTY_recoverable_output (1<<3)
|
|
#define STTY_noargs (1<<4)
|
|
+int stty_main(int argc, char **argv);
|
|
int stty_main(int argc, char **argv)
|
|
{
|
|
struct termios mode;
|