]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Fix serial --rtscts option processing
authorAndrei Borzenkov <arvidjaar@gmail.com>
Tue, 9 Dec 2014 18:41:49 +0000 (21:41 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Tue, 9 Dec 2014 18:56:39 +0000 (21:56 +0300)
ChangeLog
grub-core/term/serial.c

index 4150810a2f14c397d7146087703c680417a79dda..c38917bd95a4db14cc757635a1ee4c844c5de63c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
index c9b5574ae3cc53013dbb5cddc691687e74f67ce2..5784bc27ee67075b979c5b5cc29330aad3c0b1e9 100644 (file)
@@ -241,9 +241,9 @@ grub_cmd_serial (grub_extcmd_context_t ctxt, int argc, char **args)
 
   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;
-      if (grub_strcmp (state[OPTION_PARITY].arg, "off") == 0)
+      else if (grub_strcmp (state[OPTION_RTSCTS].arg, "off") == 0)
        config.rtscts = 0;
       else
        return grub_error (GRUB_ERR_BAD_ARGUMENT,