]> git.eshelyaron.com Git - emacs.git/commit
Fix auth-source-pass to search for hostname:port/username
authorKeith Amidon <camalot@picnicpark.org>
Thu, 14 Feb 2019 18:27:31 +0000 (10:27 -0800)
committerDamien Cassou <damien@cassou.me>
Mon, 24 Jun 2019 07:15:40 +0000 (09:15 +0200)
commit94c9eb81b8b265380345c36c0a481d9022435d89
tree2903d5a21119fa80efd9f5c48073dc09155286c3
parent2a0a05789d4734e4b3d18941346ecda9834e7cc9
Fix auth-source-pass to search for hostname:port/username

auth-source-pass supports entries with username either prefixed to the
hostname with an @ as separator or in a subdirectory under the
hostname.  This was true when there was no port or service included in
the name, but got broken with the introduction of
auth-source-pass-port-separator.

* lisp/auth-source-pass.el (auth-source-pass--find-match-unambiguous): Fix
to match hostname:port/username.
* test/lisp/auth-source-pass-tests.el: Add corresponding tests.
lisp/auth-source-pass.el
test/lisp/auth-source-pass-tests.el