aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-12 21:03:07 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-12 21:03:07 +0000
commit0a0339cfc16667f8f41a0cb0cfe4c50543e9c251 (patch)
tree6da923cf99dc7243c38cf89a418d5ba0d5334df9
parent029a6d01d934964c9286b0d82a36c82aae95e804 (diff)
downloadbusybox-w32-0a0339cfc16667f8f41a0cb0cfe4c50543e9c251.tar.gz
busybox-w32-0a0339cfc16667f8f41a0cb0cfe4c50543e9c251.tar.bz2
busybox-w32-0a0339cfc16667f8f41a0cb0cfe4c50543e9c251.zip
stty: fix bug reported by Paul Albrecht <albrecht@rdi1.com> -
stty -echo didn't work. Introduced by me :( git-svn-id: svn://busybox.net/trunk/busybox@17262 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--coreutils/stty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c
index 93919b33a..c09c7c71f 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -1188,6 +1188,7 @@ end_option:
1188 mp = find_mode(arg+1); 1188 mp = find_mode(arg+1);
1189 if (mp) { 1189 if (mp) {
1190 set_mode(mp, 1 /* reversed */, &mode); 1190 set_mode(mp, 1 /* reversed */, &mode);
1191 require_set_attr = 1;
1191 } 1192 }
1192 /* It is an option - already parsed. Skip it */ 1193 /* It is an option - already parsed. Skip it */
1193 continue; 1194 continue;
@@ -1196,6 +1197,7 @@ end_option:
1196 mp = find_mode(arg); 1197 mp = find_mode(arg);
1197 if (mp) { 1198 if (mp) {
1198 set_mode(mp, 0 /* non-reversed */, &mode); 1199 set_mode(mp, 0 /* non-reversed */, &mode);
1200 require_set_attr = 1;
1199 continue; 1201 continue;
1200 } 1202 }
1201 1203
@@ -1203,6 +1205,7 @@ end_option:
1203 if (cp) { 1205 if (cp) {
1204 ++k; 1206 ++k;
1205 set_control_char_or_die(cp, argnext, &mode); 1207 set_control_char_or_die(cp, argnext, &mode);
1208 require_set_attr = 1;
1206 continue; 1209 continue;
1207 } 1210 }
1208 1211