diff options
author | Damien Miller <djm@mindrot.org> | 2014-02-04 11:26:04 +1100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-02-11 11:26:39 +0000 |
commit | c662cd7269217e67b4c47ed4afdbe0ca8d355fd4 (patch) | |
tree | 878ac64795da685da4eb99da22b902af829a9a88 /ssh.c | |
parent | ee8d8b97cc2c6081df3af453a228992b87309ec4 (diff) |
Unbreak case-sensitive matching of ssh_config
- djm@cvs.openbsd.org 2014/02/04 00:24:29
[ssh.c]
delay lowercasing of hostname until right before hostname
canonicalisation to unbreak case-sensitive matching of ssh_config;
reported by Ike Devolder; ok markus@
Origin: backport, https://anongit.mindrot.org/openssh.git/commit/?id=d56b44d2dfa093883a5c4e91be3f72d99946b170
Bug-Debian: http://bugs.debian.org/738619
Forwarded: not-needed
Last-Update: 2014-02-11
Patch-Name: fix-case-sensitive-matching.patch
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -780,7 +780,6 @@ main(int ac, char **av) | |||
780 | if (!host) | 780 | if (!host) |
781 | usage(); | 781 | usage(); |
782 | 782 | ||
783 | lowercase(host); | ||
784 | host_arg = xstrdup(host); | 783 | host_arg = xstrdup(host); |
785 | 784 | ||
786 | OpenSSL_add_all_algorithms(); | 785 | OpenSSL_add_all_algorithms(); |
@@ -914,6 +913,7 @@ main(int ac, char **av) | |||
914 | } | 913 | } |
915 | 914 | ||
916 | /* If canonicalization requested then try to apply it */ | 915 | /* If canonicalization requested then try to apply it */ |
916 | lowercase(host); | ||
917 | if (options.canonicalize_hostname != SSH_CANONICALISE_NO) | 917 | if (options.canonicalize_hostname != SSH_CANONICALISE_NO) |
918 | addrs = resolve_canonicalize(&host, options.port); | 918 | addrs = resolve_canonicalize(&host, options.port); |
919 | /* | 919 | /* |