summaryrefslogtreecommitdiff
path: root/lisp/net
diff options
context:
space:
mode:
authorJürgen Hötzel <juergen@archlinux.org>2016-07-09 14:19:12 +0200
committerMichael Albinus <michael.albinus@gmx.de>2016-07-09 14:19:12 +0200
commite4adb6cdf30706f28dada8aafd347549c84105ac (patch)
tree15924e49f21acd371bc0d49a8ed66d9d861b9272 /lisp/net
parent0a2aedfe6d650e825a50f25f972bac20d669f5cb (diff)
Wrap around error in coreutil's ls
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory): Add switch "--quoting-style=literal" if remote host supports quoting style. Recent versions of coreutils changed default quoting style to "--quoting=shell-escape".
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/tramp-sh.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 430c1c1d87..abfd56eb92 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -2655,6 +2655,8 @@ The method used must be an out-of-band method."
filename switches wildcard full-directory-p)
(when (stringp switches)
(setq switches (split-string switches)))
+ (when (tramp-get-ls-command-with-quoting-style v)
+ (setq switches (append switches '("--quoting-style=literal"))))
(when (and (member "--dired" switches)
(not (tramp-get-ls-command-with-dired v)))
(setq switches (delete "--dired" switches)))