mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* net/tramp.el (tramp-get-ls-command)
(tramp-get-ls-command-with-dired): Run tests on "/dev/null" instead of "/".
This commit is contained in:
parent
d26b0ea9c5
commit
10e7399417
2 changed files with 10 additions and 2 deletions
|
|
@ -8344,7 +8344,8 @@ necessary only. This function will be used in file name completion."
|
|||
(when (zerop (tramp-send-command-and-check
|
||||
vec (format "%s -lnd /" result)))
|
||||
(when (zerop (tramp-send-command-and-check
|
||||
vec (format "%s --color=never -al /" result)))
|
||||
vec (format
|
||||
"%s --color=never -al /dev/null" result)))
|
||||
(setq result (concat result " --color=never")))
|
||||
(throw 'ls-found result))
|
||||
(setq dl (cdr dl))))))
|
||||
|
|
@ -8358,7 +8359,8 @@ necessary only. This function will be used in file name completion."
|
|||
;; they fail when "-al" is after the "--dired" argument (for
|
||||
;; example on FreeBSD).
|
||||
(zerop (tramp-send-command-and-check
|
||||
vec (format "%s --dired -al /" (tramp-get-ls-command vec)))))))
|
||||
vec (format "%s --dired -al /dev/null"
|
||||
(tramp-get-ls-command vec)))))))
|
||||
|
||||
(defun tramp-get-test-command (vec)
|
||||
(with-connection-property vec "test"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue