diff options
Diffstat (limited to 'lisp/net/tramp.el')
-rw-r--r-- | lisp/net/tramp.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index f89c32102e2..7a6da178a61 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -3404,8 +3404,9 @@ tramp-handle-file-name-all-completions: internal error accessing `%s': `%s'" ;; When DIRNAME and NEWNAME are remote, they must have ;; the same method. (or (null t1) (null t2) - (string-equal (file-remote-p dirname 'method) - (file-remote-p newname 'method)))) + (string-equal + (tramp-file-name-method (tramp-dissect-file-name dirname)) + (tramp-file-name-method (tramp-dissect-file-name newname))))) ;; scp or rsync DTRT. (progn (setq dirname (directory-file-name (expand-file-name dirname)) |