diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-02-04 11:16:21 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-02-04 11:16:21 +0000 |
commit | bbbb7e02fcd116390eaa86d701b674ca3f3312f6 (patch) | |
tree | 069dcd61b30c29c9cfe85b569d501893bf943681 /coreutils | |
parent | 1ca74185c497710e2949c3b5ea97897d9b96c758 (diff) | |
download | busybox-w32-bbbb7e02fcd116390eaa86d701b674ca3f3312f6.tar.gz busybox-w32-bbbb7e02fcd116390eaa86d701b674ca3f3312f6.tar.bz2 busybox-w32-bbbb7e02fcd116390eaa86d701b674ca3f3312f6.zip |
- pull r17757 from trunk: fix stty's fix_param(). Closes #1193
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/stty.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c index 4e665bcb7..51aa66d40 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
@@ -568,10 +568,11 @@ static int find_param(const char * const name) | |||
568 | NULL | 568 | NULL |
569 | }; | 569 | }; |
570 | int i = index_in_str_array(params, name); | 570 | int i = index_in_str_array(params, name); |
571 | if (i) { | 571 | if (i < 0) |
572 | if (!(i == 4 || i == 5)) | 572 | return 0; |
573 | i |= 0x80; | 573 | if (!(i == 4 || i == 5)) |
574 | } | 574 | i |= 0x80; |
575 | |||
575 | return i; | 576 | return i; |
576 | } | 577 | } |
577 | 578 | ||