diff options
Diffstat (limited to 'coreutils/stty.c')
-rw-r--r-- | coreutils/stty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c index d1309f9aa..40e812799 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
@@ -1320,7 +1320,7 @@ int stty_main(int argc UNUSED_PARAM, char **argv) | |||
1320 | break; | 1320 | break; |
1321 | case 'F': | 1321 | case 'F': |
1322 | if (file_name) | 1322 | if (file_name) |
1323 | bb_error_msg_and_die("only one device may be specified"); | 1323 | bb_simple_error_msg_and_die("only one device may be specified"); |
1324 | file_name = &arg[i+1]; /* "-Fdevice" ? */ | 1324 | file_name = &arg[i+1]; /* "-Fdevice" ? */ |
1325 | if (!file_name[0]) { /* nope, "-F device" */ | 1325 | if (!file_name[0]) { /* nope, "-F device" */ |
1326 | int p = k+1; /* argv[p] is argnext */ | 1326 | int p = k+1; /* argv[p] is argnext */ |
@@ -1405,13 +1405,13 @@ int stty_main(int argc UNUSED_PARAM, char **argv) | |||
1405 | if ((stty_state & (STTY_verbose_output | STTY_recoverable_output)) == | 1405 | if ((stty_state & (STTY_verbose_output | STTY_recoverable_output)) == |
1406 | (STTY_verbose_output | STTY_recoverable_output) | 1406 | (STTY_verbose_output | STTY_recoverable_output) |
1407 | ) { | 1407 | ) { |
1408 | bb_error_msg_and_die("-a and -g are mutually exclusive"); | 1408 | bb_simple_error_msg_and_die("-a and -g are mutually exclusive"); |
1409 | } | 1409 | } |
1410 | /* Specifying -a or -g with non-options is an error */ | 1410 | /* Specifying -a or -g with non-options is an error */ |
1411 | if ((stty_state & (STTY_verbose_output | STTY_recoverable_output)) | 1411 | if ((stty_state & (STTY_verbose_output | STTY_recoverable_output)) |
1412 | && !(stty_state & STTY_noargs) | 1412 | && !(stty_state & STTY_noargs) |
1413 | ) { | 1413 | ) { |
1414 | bb_error_msg_and_die("modes may not be set when -a or -g is used"); | 1414 | bb_simple_error_msg_and_die("modes may not be set when -a or -g is used"); |
1415 | } | 1415 | } |
1416 | 1416 | ||
1417 | /* Now it is safe to start doing things */ | 1417 | /* Now it is safe to start doing things */ |