[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 21:40:18 AEDT 2023


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

--- Comment #3 from Mike <git+openssh at limpsquid.nl> ---
(In reply to Darren Tucker from comment #2)
> Created attachment 3656 [details]
> Check for newline at end of known_hosts and add it missing.  Close
> FILE * if write fails.
> 
> Please try this one instead.

Patch looks good to me, I'll try it out and report back in a day or so.

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