Re: [JGIT PATCH] Test and fix handling of quotes in ~/.ssh/config
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Sep 24, 2008, 23:31 UTC
- Message-ID
- <20080924233104.GG3669@spearce.org>
- In-Reply-To
- <20080924232519.GA15318@diku.dk>
Jonas Fonseca <fonseca@diku.dk> wrote:
> Shawn O. Pearce <spearce@spearce.org> wrote Mon, Sep 22, 2008:
> > Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:
> > > söndagen den 21 september 2008 13.25.19 skrev Jonas Fonseca:
> > > > + assertEquals("bad.tld\"", osc.lookup("bad").getHostName());...
> > > This one is really (as you noted) bad so we shouldn't allow it at all. > > Using exceptions seems a bit harsh, since the quote is not really fatal > in anyway.
...
> I propose to simply remove these hosts from the host map and clear > the current host list so that no values will be saved, effectively > causing invalid hosts to result in the same as unknown hosts.
Yea, that seems quite reasonable.
If you want more debugging than that on your ~/.ssh/config file then run OpenSSH tools on it. Hell, I can't count the number of times I've made typos in there and couldn't figure out why it was still asking for a password, etc. And that's just the OpenSSH command line tools.
-- Shawn.