Skip to content

Include directive doesn't properly detect absolute paths #2312

Closed
PowerShell/openssh-portable
#770
@tgauth

Description

@tgauth

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions