Skip to content

Include directive doesn't properly detect absolute paths #2312

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
3 tasks done
tgauth opened this issue Dec 5, 2024 · 0 comments · Fixed by PowerShell/openssh-portable#770
Closed
3 tasks done

Include directive doesn't properly detect absolute paths #2312

tgauth opened this issue Dec 5, 2024 · 0 comments · Fixed by PowerShell/openssh-portable#770

Comments

@tgauth
Copy link
Collaborator

tgauth commented Dec 5, 2024

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

Include C:\ProgramData\ssh\includeFile does not work
Include /C:\ProgramData\ssh\includeFile works
Include includeFile works

Expected behavior

contents of include file are reflected in sshd configuration (SSHD -T)

Actual behavior

contents of include file are not reflected in sshd configuration because file is not found. It is interpreted as a relative path so the progData path prefix is appended to the path, making it not findable.

Error details

N/A

Environment data

N/A

Version

9.8.1.0

Visuals

No response

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant