aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2014-02-23 15:51:29 +0100
committerMichael Albinus2014-02-23 15:51:29 +0100
commit85c01f803fb003f33a30da2ebf157e69cd30c2cf (patch)
treef28f5392e66c0da67c7bf0e41d95026035b8a6d6
parent0b5d5a442a3e4d1da2a93fc094c98fece5c24ed6 (diff)
downloademacs-85c01f803fb003f33a30da2ebf157e69cd30c2cf.tar.gz
emacs-85c01f803fb003f33a30da2ebf157e69cd30c2cf.zip
* net/tramp-sh.el (tramp-sh-handle-file-truename): Preserve trailing "/".
Fixes: debbugs:16851
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/net/tramp-sh.el3
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 40f5d7defc1..de5dd56ddbb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-02-23 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-sh.el (tramp-sh-handle-file-truename):
4 Preserve trailing "/". (Bug#16851)
5
12014-02-23 Dmitry Gutov <dgutov@yandex.ru> 62014-02-23 Dmitry Gutov <dgutov@yandex.ru>
2 7
3 * progmodes/ruby-mode.el (ruby-smie-rules): Don't indent specially 8 * progmodes/ruby-mode.el (ruby-smie-rules): Don't indent specially
@@ -130,7 +135,7 @@
130 (tramp-handle-insert-directory): New defun, taken from tramp-gvfs.el. 135 (tramp-handle-insert-directory): New defun, taken from tramp-gvfs.el.
131 136
132 * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist) 137 * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
133 <insert-directory>: Use `tramp-handle-insert-directory. 138 <insert-directory>: Use `tramp-handle-insert-directory'.
134 (tramp-gvfs-handle-insert-directory): Remove function. 139 (tramp-gvfs-handle-insert-directory): Remove function.
135 140
136 * net/tramp-sh.el (tramp-sh-handle-insert-directory): 141 * net/tramp-sh.el (tramp-sh-handle-insert-directory):
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 01abfe0e71f..efad151dac8 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1042,7 +1042,8 @@ target of the symlink differ."
1042 (setq result (concat result "/")))))) 1042 (setq result (concat result "/"))))))
1043 1043
1044 (tramp-message v 4 "True name of `%s' is `%s'" localname result) 1044 (tramp-message v 4 "True name of `%s' is `%s'" localname result)
1045 result))))) 1045 (if (string-equal (file-name-nondirectory localname) "")
1046 (file-name-as-directory result) result))))))
1046 1047
1047;; Basic functions. 1048;; Basic functions.
1048 1049