diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2014-04-11 14:59:36 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2014-04-11 14:59:36 +0200 |
commit | 907e4e8dee0bc5ee15afe2daea94c7016db1b726 (patch) | |
tree | c1a933ddaa92c4fe3dadf1c4d51435d990034f31 | |
parent | a921231600d208509a55a73fad54397e40c6e5b5 (diff) | |
download | emacs-907e4e8dee0bc5ee15afe2daea94c7016db1b726.tar.gz |
* net/tramp-sh.el (tramp-sh-handle-file-truename): Quote the file
name twice due to backticks. (Bug#17238)
-rw-r--r-- | lisp/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/net/tramp-sh.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1b2b0e5e3b6..5f91a63ce81 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-04-11 Michael Albinus <michael.albinus@gmx.de> + + * net/tramp-sh.el (tramp-sh-handle-file-truename): Quote the file + name twice due to backticks. (Bug#17238) + 2014-04-11 Glenn Morris <rgm@gnu.org> * term/w32-win.el (x-win-suspend-error): diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 8ff29a8b426..4d0b5ae54d4 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -950,13 +950,15 @@ target of the symlink differ." (tramp-message v 4 "Finding true name for `%s'" filename) (cond ;; Use GNU readlink --canonicalize-missing where available. + ;; We must quote the file name twice due to the backticks. ((tramp-get-remote-readlink v) (setq result (tramp-send-command-and-read v (format "echo \"\\\"`%s --canonicalize-missing %s`\\\"\"" (tramp-get-remote-readlink v) - (tramp-shell-quote-argument localname))))) + (tramp-shell-quote-argument + (tramp-shell-quote-argument localname)))))) ;; Use Perl implementation. ((and (tramp-get-remote-perl v) |