diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/auth-source-pass.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/auth-source-pass.el b/lisp/auth-source-pass.el index 524a72792cf..dfdb7596fae 100644 --- a/lisp/auth-source-pass.el +++ b/lisp/auth-source-pass.el | |||
| @@ -269,10 +269,15 @@ If ENTRIES is nil, use the result of calling `auth-source-pass-entries' instead. | |||
| 269 | 269 | ||
| 270 | Based on the supported pathname patterns for HOSTNAME, USER, & | 270 | Based on the supported pathname patterns for HOSTNAME, USER, & |
| 271 | PORT, return a list of possible suffixes for matching entries in | 271 | PORT, return a list of possible suffixes for matching entries in |
| 272 | the password-store." | 272 | the password-store. |
| 273 | |||
| 274 | PORT may be a list of ports." | ||
| 273 | (let ((domains (auth-source-pass--domains (split-string hostname "\\.")))) | 275 | (let ((domains (auth-source-pass--domains (split-string hostname "\\.")))) |
| 274 | (seq-mapcat (lambda (n) | 276 | (seq-mapcat (lambda (domain) |
| 275 | (auth-source-pass--name-port-user-suffixes n user port)) | 277 | (seq-mapcat |
| 278 | (lambda (p) | ||
| 279 | (auth-source-pass--name-port-user-suffixes domain user p)) | ||
| 280 | (if (listp port) port (list port)))) | ||
| 276 | domains))) | 281 | domains))) |
| 277 | 282 | ||
| 278 | (defun auth-source-pass--domains (name-components) | 283 | (defun auth-source-pass--domains (name-components) |