* net/tramp-sh.el (tramp-method-out-of-band-p): Check, whether

SIZE is a number.
This commit is contained in:
Michael Albinus 2011-06-23 15:03:04 +02:00
parent 4fc2b746f7
commit d59eb51849
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-06-23 Michael Albinus <michael.albinus@gmx.de>
* net/tramp-sh.el (tramp-method-out-of-band-p): Check, whether
SIZE is a number.
2011-06-23 Martin Rudalics <rudalics@gmx.at>
* window.el (get-lru-window, get-mru-window)

View file

@ -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)