Skip to content

Fix the output flags#897

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
yosuke-wolfssl:f_863
Mar 19, 2026
Merged

Fix the output flags#897
dgarske merged 1 commit intowolfSSL:masterfrom
yosuke-wolfssl:f_863

Conversation

@yosuke-wolfssl
Copy link
Contributor

The original wolfSSH_DoModes() changes the local modes instead of output modes unintentionally.
This PR fixes the target flags so that output flags would be changed when requested.

@yosuke-wolfssl yosuke-wolfssl self-assigned this Mar 19, 2026
Copilot AI review requested due to automatic review settings March 19, 2026 07:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects wolfSSH_DoModes() so that terminal output mode opcodes update termios.c_oflag (output flags) instead of incorrectly updating termios.c_lflag (local flags), aligning behavior with RFC terminal mode semantics.

Changes:

  • Fix output-mode opcodes (WOLFSSH_OPOST, WOLFSSH_OLCUC, WOLFSSH_ONLCR, WOLFSSH_ONOCR, WOLFSSH_ONLRET) to apply to term.c_oflag.
  • Correct the preprocessor guard typo for ONLCR (#ifdef ONLCR), ensuring the ONLCR handling is compiled when available.
  • Update the (intentionally disabled) OCRNL line to reference term.c_oflag for consistency.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dgarske dgarske merged commit 7bbc20f into wolfSSL:master Mar 19, 2026
135 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants