]> git.eshelyaron.com Git - emacs.git/commit
Fix auth-source-pass.el to properly handle special inputs
authorJelle Licht <jlicht@fsfe.org>
Mon, 8 Jan 2018 16:34:38 +0000 (17:34 +0100)
committerNicolas Petton <nicolas@petton.fr>
Tue, 5 Jun 2018 13:51:26 +0000 (15:51 +0200)
commit1d2551f8e70ab80a6f57ee11ab70f54aa916adcd
tree12bd87f8901445dd326e9e8219ad9fd6e259da14
parentb43ed61ef985e01975b90d7e0ec3cac70d0afefa
Fix auth-source-pass.el to properly handle special inputs

* lisp/auth-source-pass.el (auth-source-pass-search): Warn when
passing multiple hosts in SPEC. Early return and warn when passing a
wildcard as host in SPEC. Early return when host is nil.
* test/lisp/auth-source-pass-tests.el (auth-source-pass-any-host,
auth-source-pass-undefined-host): Add corresponding tests.
lisp/auth-source-pass.el
test/lisp/auth-source-pass-tests.el