]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/net/tramp.el (tramp-handle-access-file): Use `file-truename'.
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 12 Oct 2019 10:19:59 +0000 (12:19 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 12 Oct 2019 10:19:59 +0000 (12:19 +0200)
lisp/net/tramp.el

index d0d8f276ca20bbd6f3d7a62655578d203e635c2a..2a60aff383b5858b3fd18b193d4701660061ef78 100644 (file)
@@ -2970,7 +2970,7 @@ User is always nil."
 
 (defun tramp-handle-access-file (filename string)
   "Like `access-file' for Tramp files."
-  (unless (file-readable-p filename)
+  (unless (file-readable-p (file-truename filename))
     (tramp-error
      (tramp-dissect-file-name filename) tramp-file-missing
      "%s: No such file or directory %s" string filename)))