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

Fix incorrect recursion on Hostname via %h #76

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

tb3088
Copy link

@tb3088 tb3088 commented Aug 4, 2017

The %n token is defined as the original host value as specified on the command-line. It stands to reason that hostname %h is gratuitous and benign by virtue of being a NOOP, hostname %h.domain makes no sense. Only hostname %n.domain complies with the documentation. Perhaps when %n was added to the list of tokens, nobody went back to update the code. Also ssh.c and readconf.c were not kept in sync despite the comment in both locations.

Given the age of this defect, and the world-wide use of '%h' we may want to run both incarnations of percent_expand back to back so as to not break a billion configuration files.

@Jakuje
Copy link
Contributor

Jakuje commented Aug 14, 2017

This certainly makes sense to fix. But as you certainly read in the readme, OpenSSH team uses github only as a mirror and patches and bug reports should be sent to mailing list and bugzilla:

https://www.openssh.com/list.html
https://bugzilla.mindrot.org/

restyled-io bot referenced this pull request in johnsonjh/j-hpn-ssh Feb 23, 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
Development

Successfully merging this pull request may close these issues.

2 participants