Minor fixes in Tramp

* lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls):
Reorder ls arguments.

* lisp/net/tramp.el (tramp-dissect-file-name): Fix docstring.
This commit is contained in:
Michael Albinus 2015-12-18 17:45:24 +01:00
parent dfc850ba4c
commit 81e523fc4d
2 changed files with 3 additions and 3 deletions

View file

@ -1274,6 +1274,7 @@ target of the symlink differ."
(tramp-get-test-command vec)
(tramp-shell-quote-argument localname)
(tramp-get-ls-command vec)
(if (eq id-format 'integer) "-ildn" "-ild")
;; On systems which have no quoting style, file names
;; with special characters could fail.
(cond
@ -1282,7 +1283,6 @@ target of the symlink differ."
((tramp-get-ls-command-with-w-option vec)
"-w")
(t ""))
(if (eq id-format 'integer) "-ildn" "-ild")
(tramp-shell-quote-argument localname)))
;; Parse `ls -l' output ...
(with-current-buffer (tramp-get-buffer vec)

View file

@ -1291,8 +1291,8 @@ This is HOST, if non-nil. Otherwise, it is `tramp-default-host'."
(defun tramp-dissect-file-name (name &optional nodefault)
"Return a `tramp-file-name' structure.
The structure consists of remote method, remote user, remote host
and localname (file name on remote host). If NODEFAULT is
The structure consists of remote method, remote user, remote host,
localname (file name on remote host) and hop. If NODEFAULT is
non-nil, the file name parts are not expanded to their default
values."
(save-match-data