summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/fix-case-sensitive-matching.patch41
-rw-r--r--debian/patches/series1
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 @@
1From c662cd7269217e67b4c47ed4afdbe0ca8d355fd4 Mon Sep 17 00:00:00 2001
2From: Damien Miller <djm@mindrot.org>
3Date: Tue, 4 Feb 2014 11:26:04 +1100
4Subject: 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
12Origin: backport, https://anongit.mindrot.org/openssh.git/commit/?id=d56b44d2dfa093883a5c4e91be3f72d99946b170
13Bug-Debian: http://bugs.debian.org/738619
14Forwarded: not-needed
15Last-Update: 2014-02-11
16
17Patch-Name: fix-case-sensitive-matching.patch
18---
19 ssh.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/ssh.c b/ssh.c
23index 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
26gnome-ssh-askpass2-icon.patch 26gnome-ssh-askpass2-icon.patch
27sigstop.patch 27sigstop.patch
28debian-config.patch 28debian-config.patch
29fix-case-sensitive-matching.patch