diff options
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/fix-case-sensitive-matching.patch | 41 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/debian/patches/fix-case-sensitive-matching.patch b/debian/patches/fix-case-sensitive-matching.patch new file mode 100644 index 000000000..b6213962d --- /dev/null +++ b/debian/patches/fix-case-sensitive-matching.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From c662cd7269217e67b4c47ed4afdbe0ca8d355fd4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Damien Miller <djm@mindrot.org> | ||
3 | Date: Tue, 4 Feb 2014 11:26:04 +1100 | ||
4 | Subject: Unbreak case-sensitive matching of ssh_config | ||
5 | |||
6 | - djm@cvs.openbsd.org 2014/02/04 00:24:29 | ||
7 | [ssh.c] | ||
8 | delay lowercasing of hostname until right before hostname | ||
9 | canonicalisation to unbreak case-sensitive matching of ssh_config; | ||
10 | reported by Ike Devolder; ok markus@ | ||
11 | |||
12 | Origin: backport, https://anongit.mindrot.org/openssh.git/commit/?id=d56b44d2dfa093883a5c4e91be3f72d99946b170 | ||
13 | Bug-Debian: http://bugs.debian.org/738619 | ||
14 | Forwarded: not-needed | ||
15 | Last-Update: 2014-02-11 | ||
16 | |||
17 | Patch-Name: fix-case-sensitive-matching.patch | ||
18 | --- | ||
19 | ssh.c | 2 +- | ||
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/ssh.c b/ssh.c | ||
23 | index 0cea713..5d5d4de 100644 | ||
24 | --- a/ssh.c | ||
25 | +++ b/ssh.c | ||
26 | @@ -780,7 +780,6 @@ main(int ac, char **av) | ||
27 | if (!host) | ||
28 | usage(); | ||
29 | |||
30 | - lowercase(host); | ||
31 | host_arg = xstrdup(host); | ||
32 | |||
33 | OpenSSL_add_all_algorithms(); | ||
34 | @@ -914,6 +913,7 @@ main(int ac, char **av) | ||
35 | } | ||
36 | |||
37 | /* If canonicalization requested then try to apply it */ | ||
38 | + lowercase(host); | ||
39 | if (options.canonicalize_hostname != SSH_CANONICALISE_NO) | ||
40 | addrs = resolve_canonicalize(&host, options.port); | ||
41 | /* | ||
diff --git a/debian/patches/series b/debian/patches/series index 5d21e57d1..f571f76a5 100644 --- a/debian/patches/series +++ b/debian/patches/series | |||
@@ -26,3 +26,4 @@ no-openssl-version-check.patch | |||
26 | gnome-ssh-askpass2-icon.patch | 26 | gnome-ssh-askpass2-icon.patch |
27 | sigstop.patch | 27 | sigstop.patch |
28 | debian-config.patch | 28 | debian-config.patch |
29 | fix-case-sensitive-matching.patch | ||