Skip to content

Reorder log message in auth.c - #1175

Merged
ejohnstown merged 1 commit into
wolfSSL:masterfrom
padelsbach:auth-dot-c-long-logs
Aug 18, 2026
Merged

Reorder log message in auth.c#1175
ejohnstown merged 1 commit into
wolfSSL:masterfrom
padelsbach:auth-dot-c-long-logs

Conversation

@padelsbach

Copy link
Copy Markdown
Contributor

Move path to end of log line to avoid early truncation of the log

@padelsbach
padelsbach force-pushed the auth-dot-c-long-logs branch from b03c56b to fcad22c Compare August 18, 2026 20:30

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 pull request adjusts wolfSSHD error log wording so that long file paths are moved to the end of the log line, reducing the chance that the actionable rejection reason is truncated in capped log output.

Changes:

  • Reorders multiple “Refusing to load …” log messages in wolfSSHD_OpenSecureFile() to put the path at the end of the line.
  • Reorders the StrictModes failure log in SearchKeysFile() to put the keys file path at the end.
  • Updates a test comment to reflect the local host key copy used by the StrictModes negative test.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/wolfsshd/test/run_all_sshd_tests.sh Updates comment in the StrictModes negative host-key test section (test logic remains compatible via substring greps).
apps/wolfsshd/auth.c Reorders log format strings so rejection reasons appear before the potentially-long file path.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #1175

Scan targets checked: wolfssh-bugs, wolfssh-src

No new issues found in the changed files. ✅

@ejohnstown
ejohnstown merged commit 2b2e86f into wolfSSL:master Aug 18, 2026
157 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