1
0

210-fix_serial_rtscts.patch 516 B

1234567891011121314
  1. --- a/grub-core/term/serial.c
  2. +++ b/grub-core/term/serial.c
  3. @@ -241,9 +241,9 @@ grub_cmd_serial (grub_extcmd_context_t c
  4. if (state[OPTION_RTSCTS].set)
  5. {
  6. - if (grub_strcmp (state[OPTION_PARITY].arg, "on") == 0)
  7. + if (grub_strcmp (state[OPTION_RTSCTS].arg, "on") == 0)
  8. config.rtscts = 1;
  9. - if (grub_strcmp (state[OPTION_PARITY].arg, "off") == 0)
  10. + else if (grub_strcmp (state[OPTION_RTSCTS].arg, "off") == 0)
  11. config.rtscts = 0;
  12. else
  13. return grub_error (GRUB_ERR_BAD_ARGUMENT,