aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Hansen2005-10-08 18:26:14 +0000
committerLars Hansen2005-10-08 18:26:14 +0000
commit8cb0a5590f96cb25238fe7b00c3c58a421bbb4fb (patch)
tree696cadb0294c2381d942e6eacb1c5b9497f49812
parent119481721087321fd1e2a5dc7e6b7f53f5db2735 (diff)
downloademacs-8cb0a5590f96cb25238fe7b00c3c58a421bbb4fb.tar.gz
emacs-8cb0a5590f96cb25238fe7b00c3c58a421bbb4fb.zip
(tramp-perl-directory-files-and-attributes): Add error handling.
(tramp-handle-directory-files-and-attributes): Handle error perl error message.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/net/tramp.el9
2 files changed, 12 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 96c16c2e558..034235683e5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12005-10-08 Lars Hansen <larsh@soem.dk>
2 * net/tramp.el (tramp-perl-directory-files-and-attributes): Add
3 error handling.
4 (tramp-handle-directory-files-and-attributes): Handle error perl
5 error message.
6
12005-10-08 Michael Albinus <michael.albinus@gmx.de> 72005-10-08 Michael Albinus <michael.albinus@gmx.de>
2 8
3 Sync with Tramp 2.0.51. 9 Sync with Tramp 2.0.51.
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 89fc86e9435..6df8a5dab42 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1617,8 +1617,8 @@ printf(
1617on the remote file system.") 1617on the remote file system.")
1618 1618
1619(defconst tramp-perl-directory-files-and-attributes "\ 1619(defconst tramp-perl-directory-files-and-attributes "\
1620chdir($ARGV[0]); 1620chdir($ARGV[0]) or printf(\"\\\"Cannot change to $ARGV[0]: $''!''\\\"\\n\"), exit();
1621opendir(DIR,\".\"); 1621opendir(DIR,\".\") or printf(\"\\\"Cannot open directory $ARGV[0]: $''!''\\\"\\n\"), exit();
1622@list = readdir(DIR); 1622@list = readdir(DIR);
1623closedir(DIR); 1623closedir(DIR);
1624$n = scalar(@list); 1624$n = scalar(@list);
@@ -2731,7 +2731,10 @@ of."
2731 (tramp-shell-quote-argument localname) 2731 (tramp-shell-quote-argument localname)
2732 (or id-format 'integer))) 2732 (or id-format 'integer)))
2733 (tramp-wait-for-output) 2733 (tramp-wait-for-output)
2734 (let* ((root (cons nil (read (current-buffer)))) 2734 (let* ((root (cons nil (let ((object (read (current-buffer))))
2735 (when (stringp object)
2736 (error object))
2737 object)))
2735 (cell root)) 2738 (cell root))
2736 (while (cdr cell) 2739 (while (cdr cell)
2737 (if (and match (not (string-match match (caadr cell)))) 2740 (if (and match (not (string-match match (caadr cell))))