mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 01:00:33 -04:00
* /var/empty has been in hier(7) since 4.x * User sshd has been in base since 4.x * Simplify a patch for realhostname_sa(3) usage - Remove SUID_SSH - It was removed from ssh in 2002 - Fix 'make test' - Add some hints into the patches on where they came from - Mirror all patches - Move LPK patch out of files/ - Remove the need for 2 patches * Removal of 'host-key check-config' in install phase * Adding -lutil - Add SCTP support [1] - Remove FILECONTROL as it has not been supported since the 5.8 update - Replace tab with space pkg-descr - Remove default WRKSRC - Add 'configtest' command to rc script - Mark X509 broken with other patches due to PATCH_DIST_STRIP=-p1 PR: ports/174570 [1] Submitted by: oleg <proler@gmail.com> [1] Obtained from: https://bugzilla.mindrot.org/show_bug.cgi?id=2016 (upstream) [1] Feature safe: yes
34 lines
888 B
C
34 lines
888 B
C
$FreeBSD$
|
|
|
|
r99054 | des | 2002-06-29 05:57:53 -0500 (Sat, 29 Jun 2002) | 4 lines
|
|
Changed paths:
|
|
M /head/crypto/openssh/ssh.c
|
|
|
|
Canonicize the host name before looking it up in the host file.
|
|
|
|
--- ssh.c.orig 2010-08-16 09:59:31.000000000 -0600
|
|
+++ ssh.c 2010-08-25 17:55:01.000000000 -0600
|
|
@@ -699,6 +699,23 @@
|
|
"h", host, (char *)NULL);
|
|
}
|
|
|
|
+ /* Find canonic host name. */
|
|
+ if (strchr(host, '.') == 0) {
|
|
+ struct addrinfo hints;
|
|
+ struct addrinfo *ai = NULL;
|
|
+ int errgai;
|
|
+ memset(&hints, 0, sizeof(hints));
|
|
+ hints.ai_family = options.address_family;
|
|
+ hints.ai_flags = AI_CANONNAME;
|
|
+ hints.ai_socktype = SOCK_STREAM;
|
|
+ errgai = getaddrinfo(host, NULL, &hints, &ai);
|
|
+ if (errgai == 0) {
|
|
+ if (ai->ai_canonname != NULL)
|
|
+ host = xstrdup(ai->ai_canonname);
|
|
+ freeaddrinfo(ai);
|
|
+ }
|
|
+ }
|
|
+
|
|
if (options.local_command != NULL) {
|
|
char thishost[NI_MAXHOST];
|
|
|