Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Ignoring comments at end of config file lines broke ProxyCommand. #237

Closed
wants to merge 1 commit into from

Conversation

tlsalmin
Copy link

If all lines are negated from the hash-sign onwards, any existing
options with embedded hash-signs are truncated. e.g. If there are
bash parts that manipulate strings.

The value is too free form to keep a good tab on when the
hash-sign is meant to be in the value and when not.

Unfortunately as 8.5 is released, there probably already exist
config files that have comments at the end of options.

Changed the comment remover to ignore only lines having a
hash-sign as the first non-space character. This will break 8.5
configurations with hash-comments at the end of functional lines.

If all lines are negated from the hash-sign onwards, any existing
options with embedded hash-signs are truncated. e.g. If there are
bash parts that manipulate strings.

The value is too free form to keep a good tab on when the
hash-sign is meant to be in the value and when not.

Unfortunately as 8.5 is released, there probably already exist
config files that have comments at the end of options.

Changed the comment remover to ignore only lines having a
hash-sign as the first non-space character. This will break 8.5
configurations with hash-comments at the end of functional lines.
@djmdjm
Copy link
Contributor

djmdjm commented Jun 4, 2021

See https://bugzilla.mindrot.org/show_bug.cgi?id=3288 for the planned fix

@djmdjm
Copy link
Contributor

djmdjm commented Jun 8, 2021

Fixes for this were committed in ea9e45c and a10f929. They should be in the openssh-8.7 release, due in a few months

@djmdjm djmdjm closed this Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants