From d59eb51849ca16fe39395cf83dd808cbff2adc2b Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Thu, 23 Jun 2011 15:03:04 +0200 Subject: [PATCH] * net/tramp-sh.el (tramp-method-out-of-band-p): Check, whether SIZE is a number. --- lisp/ChangeLog | 5 +++++ lisp/net/tramp-sh.el | 2 ++ 2 files changed, 7 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dfac3b497ad..8660bd5b764 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-06-23 Michael Albinus + + * net/tramp-sh.el (tramp-method-out-of-band-p): Check, whether + SIZE is a number. + 2011-06-23 Martin Rudalics * window.el (get-lru-window, get-mru-window) diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 025b4ab6cf3..e340ddc6cb0 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -4661,6 +4661,8 @@ This is used internally by `tramp-file-mode-from-int'." (and ;; It shall be an out-of-band method. (tramp-get-method-parameter (tramp-file-name-method vec) 'tramp-copy-program) + ;; There must be a size, otherwise the file doesn't exist. + (numberp size) ;; Either the file size is large enough, or (in rare cases) there ;; does not exist a remote encoding. (or (null tramp-copy-size-limit) -- 2.39.5