Improve ~/.ssh/config modification code to not add trailing spaces to lines it cannot parse.

"Host\n" is a valid line, and actually gets parsed ok, but this also holds
for other lines that it fails to parse for some reason.
This commit is contained in:
Joey Hess 2015-09-22 12:06:10 -04:00
parent 927498a1e4
commit 1dcb86498e
4 changed files with 17 additions and 1 deletions

2
debian/changelog vendored
View file

@ -8,6 +8,8 @@ git-annex (5.20150917) UNRELEASED; urgency=medium
In particular, storageclass=STANDARD_IA to use Amazon's
new Infrequently Accessed storage, and storageclass=NEARLINE
to use Google's NearLine storage.
* Improve ~/.ssh/config modification code to not add trailing spaces
to lines it cannot parse.
-- Joey Hess <id@joeyh.name> Wed, 16 Sep 2015 12:23:33 -0400