diff options
author | Thomas Wolf <thomas.wolf@paranor.ch> | 2021-05-15 18:13:04 +0200 |
---|---|---|
committer | Thomas Wolf <thomas.wolf@paranor.ch> | 2021-05-17 08:26:23 +0200 |
commit | 87704b773654470508de1dc9570914cad168ccf9 (patch) | |
tree | d26a5fab5efd3f16d2a8eecb8a8b43321d2c5b92 /org.eclipse.jgit.ant.test | |
parent | cb65846722e82300ef570bc9e161ac1c9ca97348 (diff) | |
download | jgit-87704b773654470508de1dc9570914cad168ccf9.tar.gz jgit-87704b773654470508de1dc9570914cad168ccf9.zip |
SSH config: fix negated patterns
Negated patterns were handled wrongly. According to the OpenBSD
ssh_config man page,[1] a negated pattern never matches. Negated
patterns make only sense if there are positive patterns; the
negated pattern then can define exceptions for the positive
patterns.
OpenSshConfigFile did this wrongly. It handled "!foo" as "matching
everything but foo", but actually the semantics is "if the input is
"foo", this entry doesn't apply. If the input is anything else,
other patterns determine whether the entry may apply.".
[1] https://man.openbsd.org/ssh_config
Change-Id: I50f6e46581b7ece4c949eddf62f4a265573ec29e
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.ant.test')
0 files changed, 0 insertions, 0 deletions