bugzilla-daemon at mindrot.org
2023-Jun-19  12:11 UTC
[Bug 3580] New: ssh-keygen -l: "no comment" never appears again after the first comment
https://bugzilla.mindrot.org/show_bug.cgi?id=3580
            Bug ID: 3580
           Summary: ssh-keygen -l: "no comment" never appears again
after
                    the first comment
           Product: Portable OpenSSH
           Version: 9.3p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: ssh-keygen
          Assignee: unassigned-bugs at mindrot.org
          Reporter: Markus.Kuhn at cl.cam.ac.uk
When running ssh-keygen -l on an input file that contains both public
keys with and without comment, then the indicator "no comment" never
appears again after the first comment. This is because in
do_fingerprint() the variable "comment" is initialized to NULL only
once at the start of the function, but it must actually be
re-initialized for each line read.
For instructions on how to reproduce this bug, as well as a patch for
the very simple and obvious fix, please see my pull-request at
  https://github.com/openssh/openssh-portable/pull/407
-- 
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2023-Jun-20  00:08 UTC
[Bug 3580] ssh-keygen -l: "no comment" never appears again after the first comment
https://bugzilla.mindrot.org/show_bug.cgi?id=3580
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |djm at mindrot.org
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
--- Comment #1 from Damien Miller <djm at mindrot.org> ---
Applied - thanks. I did see this on github, but was just slow - you
don't generally need to file them in both places, so sorry for making
you do the extra step :(
-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2023-Jun-20  09:46 UTC
[Bug 3580] ssh-keygen -l: "no comment" never appears again after the first comment
https://bugzilla.mindrot.org/show_bug.cgi?id=3580 --- Comment #2 from Markus Kuhn <Markus.Kuhn at cl.cam.ac.uk> --- Thanks. I had consulted https://www.openssh.com/report.html for what the correct procedure is to submit a bug report and patch. Since I didn't see there https://github.com/openssh/openssh-portable/pulls mentioned as an option, I thought I'd better raise it here as well. -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
Maybe Matching Threads
- [Bug 3253] New: ssh-keygen man page still lists deprecated key types for -t
 - [Bug 566] ssh-keygen -l does not print key comment for rsa/dsa keys
 - [Bug 3545] New: Output from ssh-keygen -e, which should always be a public-key, is not accepted by ssh-keygen -l
 - [Bug 1544] ssh-keygen -l on known_hosts file does not display hostnames for lines with comments
 - [Bug 1544] ssh-keygen -l on known_hosts file does not display hostnames for lines with comments