Ignore comments in ssh_config Include parsing#1199
Ignore comments in ssh_config Include parsing#1199
Conversation
scop
left a comment
There was a problem hiding this comment.
Thanks!
In addition to the requested test suite update, please search for "conventional commits" in CONTRIBUTING.md for info how to format the commit message and modify it accordingly (+ force-push with it).
57561fb to
663255d
Compare
akinomyoga
left a comment
There was a problem hiding this comment.
Thanks for updating.
I agree. We want to apply the changes consistently for similar cases. |
|
I rebased it. |
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
|
I squashed commits. A similar change for the Host directive discussed in the following places haven't been processed, but I think they can be processed in a separate PR:
|
When parsing Include directive in ssh_config files, comments on the same line as the directive are considered as files to be recursively processed. Best case the recursive
max_depth=16terminates this early, but on old versions it may lead to random reads or an infinite recursion, hanging the shell processExample before/after:
A minimal ssh client config file
The current sed expression
Proposed change to sed expression (ignore anything coming after a
#)