[Bug 3529] `add_host_to_hostfile` should take into consideration that the known_hosts file isn't terminated with a newline character.

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sun Feb 5 20:33:20 AEDT 2023


https://bugzilla.mindrot.org/show_bug.cgi?id=3529

Darren Tucker <dtucker at dtucker.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #3655|0                           |1
        is obsolete|                            |
   Attachment #3655|ok?(djm at mindrot.org)        |
              Flags|                            |

--- Comment #2 from Darren Tucker <dtucker at dtucker.net> ---
Created attachment 3656
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3656&action=edit
Check for newline at end of known_hosts and add it missing.  Close FILE
* if write fails.

Please try this one instead.

-- 
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.


More information about the openssh-bugs mailing list