Debian Codegraph @

debian/patches/0002-Ignore-host-keys-with-markers.patch

raw
1 From: =?utf-8?q?Timo_R=C3=B6hling?= <[email protected]>
2 Date: Mon, 17 Feb 2025 22:39:54 +0100
3 Subject: Ignore host keys with markers
4
5 Hotfix to prevent paramiko from choking on @cert-authority entries
6 ---
7 paramiko/hostkeys.py | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 Index: paramiko/paramiko/hostkeys.py
11 ===================================================================
12 --- paramiko.orig/paramiko/hostkeys.py
13 +++ paramiko/paramiko/hostkeys.py
14 @@ -87,7 +87,7 @@ class HostKeys(MutableMapping):
15 with open(filename, "r") as f:
16 for lineno, line in enumerate(f, 1):
17 line = line.strip()
18 - if (len(line) == 0) or (line[0] == "#"):
19 + if (len(line) == 0) or (line[0] == "#") or (line[0] == "@"):
20 continue
21 try:
22 entry = HostKeyEntry.from_line(line, lineno)