aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2010-07-21 06:40:47 +0200
committerMichael Albinus2010-07-21 06:40:47 +0200
commit10e739941705b705bfd1e336b538a3a45aaa4fff (patch)
tree024404246933eb56149e167cb929cb1a43bf4c74
parentd26b0ea9c5d43b366cf4a31be2300d17737a1370 (diff)
downloademacs-10e739941705b705bfd1e336b538a3a45aaa4fff.tar.gz
emacs-10e739941705b705bfd1e336b538a3a45aaa4fff.zip
* net/tramp.el (tramp-get-ls-command)
(tramp-get-ls-command-with-dired): Run tests on "/dev/null" instead of "/".
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/net/tramp.el6
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e9b932cd4ae..5ead7c3856a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12010-07-21 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-get-ls-command)
4 (tramp-get-ls-command-with-dired): Run tests on "/dev/null"
5 instead of "/".
6
12010-07-20 Michael R. Mauger <mmaug@yahoo.com> 72010-07-20 Michael R. Mauger <mmaug@yahoo.com>
2 8
3 * progmodes/sql.el: Version 2.3. 9 * progmodes/sql.el: Version 2.3.
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index a32daf278f7..1c9a7015bf2 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -8344,7 +8344,8 @@ necessary only. This function will be used in file name completion."
8344 (when (zerop (tramp-send-command-and-check 8344 (when (zerop (tramp-send-command-and-check
8345 vec (format "%s -lnd /" result))) 8345 vec (format "%s -lnd /" result)))
8346 (when (zerop (tramp-send-command-and-check 8346 (when (zerop (tramp-send-command-and-check
8347 vec (format "%s --color=never -al /" result))) 8347 vec (format
8348 "%s --color=never -al /dev/null" result)))
8348 (setq result (concat result " --color=never"))) 8349 (setq result (concat result " --color=never")))
8349 (throw 'ls-found result)) 8350 (throw 'ls-found result))
8350 (setq dl (cdr dl)))))) 8351 (setq dl (cdr dl))))))
@@ -8358,7 +8359,8 @@ necessary only. This function will be used in file name completion."
8358 ;; they fail when "-al" is after the "--dired" argument (for 8359 ;; they fail when "-al" is after the "--dired" argument (for
8359 ;; example on FreeBSD). 8360 ;; example on FreeBSD).
8360 (zerop (tramp-send-command-and-check 8361 (zerop (tramp-send-command-and-check
8361 vec (format "%s --dired -al /" (tramp-get-ls-command vec))))))) 8362 vec (format "%s --dired -al /dev/null"
8363 (tramp-get-ls-command vec)))))))
8362 8364
8363(defun tramp-get-test-command (vec) 8365(defun tramp-get-test-command (vec)
8364 (with-connection-property vec "test" 8366 (with-connection-property vec "test"