]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor fixes in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 18 Dec 2015 16:45:24 +0000 (17:45 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 18 Dec 2015 16:45:24 +0000 (17:45 +0100)
* lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls):
Reorder ls arguments.

* lisp/net/tramp.el (tramp-dissect-file-name): Fix docstring.

lisp/net/tramp-sh.el
lisp/net/tramp.el

index 6cd29c1ca6c7da8d9e14d671addf133fcc2f5593..95fafb848d961c6cbb43614a822a85b051ad0c90 100644 (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)
index 40c3f368a9f167427396800008fac86c07d5c668..b7f53095a8e08516c11765341e5b4de4e5dbc043 100644 (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