Revert an erroneous change in tramp-cache.el
* lisp/net/tramp-cache.el (tramp-get-hash-table): Use `string-match-p' instead of `string-search'. The latter one was introduced by accident. Reported by Kai Tetzlaff <kai@tetzlaff.eu>.
This commit is contained in:
parent
ab2f275422
commit
0591aa6cd3
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ If KEY is `tramp-cache-undefined', don't create anything, and return nil."
|
|||
(puthash key (make-hash-table :test #'equal) tramp-cache-data)))
|
||||
(when (tramp-file-name-p key)
|
||||
(dolist (elt tramp-connection-properties)
|
||||
(when (tramp-compat-string-search
|
||||
(when (string-match-p
|
||||
(or (nth 0 elt) "")
|
||||
(tramp-make-tramp-file-name key 'noloc 'nohop))
|
||||
(tramp-set-connection-property key (nth 1 elt) (nth 2 elt)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue