Fix serial --rtscts option processing

This commit is contained in:
Andrei Borzenkov 2014-12-09 21:41:49 +03:00
parent 17328db3b3
commit bac5d1a64a
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
* grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
option processing.
2014-12-07 David Kozub <zub.272@gmail.com> 2014-12-07 David Kozub <zub.272@gmail.com>
* grub-core/kern/arm/misc.S: fix unaligned 64bit local variable * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable

View file

@ -241,9 +241,9 @@ grub_cmd_serial (grub_extcmd_context_t ctxt, int argc, char **args)
if (state[OPTION_RTSCTS].set) if (state[OPTION_RTSCTS].set)
{ {
if (grub_strcmp (state[OPTION_PARITY].arg, "on") == 0) if (grub_strcmp (state[OPTION_RTSCTS].arg, "on") == 0)
config.rtscts = 1; config.rtscts = 1;
if (grub_strcmp (state[OPTION_PARITY].arg, "off") == 0) else if (grub_strcmp (state[OPTION_RTSCTS].arg, "off") == 0)
config.rtscts = 0; config.rtscts = 0;
else else
return grub_error (GRUB_ERR_BAD_ARGUMENT, return grub_error (GRUB_ERR_BAD_ARGUMENT,