Skip to content

Fix the output flags - #897

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

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

Conversation

@yosuke-wolfssl

Copy link
Copy Markdown
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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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
@yosuke-wolfssl
yosuke-wolfssl deleted the f_863 branch March 22, 2026 23:05
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