Version: 1.2.2-3

Hi Julien,

somehow the patch from Ward was not applied correctly in 1.2.2-3. It
still fails:

$ sshfp -k .ssh/known_hosts
WARNING: Assuming -a
Traceback (most recent call last):
  File "/usr/bin/sshfp", line 378, in <module>
    main()
  File "/usr/bin/sshfp", line 363, in main
    data = sshfp_from_file(khfile, args)
  File "/usr/bin/sshfp", line 129, in sshfp_from_file
    fingerprints.append(process_records(data, wantedHosts))
  File "/usr/bin/sshfp", line 171, in process_records
    if not check_keytype(keytype, hostname):
NameError: global name 'hostname' is not defined

The variable 'hostname' does not exist, Ward wrote 'host' in the
original patch.
This patch fixed it for me:

----------------
--- /usr/bin/sshfp.orig      2012-07-14 09:44:16.000000000 +0200
+++ /bin/sshfp   2013-01-04 23:15:48.000000000 +0100
@@ -168,7 +168,7 @@
                if "," in host:
                        host = host.split(",")[0]
                if all_hosts or host in hostnames or host == hostnames:
-                       if not check_keytype(keytype, hostname):
+                       if not check_keytype(keytype, host):
                                continue
                        all_records.append(create_sshfp(host, keytype, key))
        if all_records:
----------------

Thanks,
Armin


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to