]> code.delx.au - gnu-emacs/commitdiff
* net/tramp-sh.el (tramp-method-out-of-band-p): Check, whether
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 23 Jun 2011 13:03:04 +0000 (15:03 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 23 Jun 2011 13:03:04 +0000 (15:03 +0200)
SIZE is a number.

lisp/ChangeLog
lisp/net/tramp-sh.el

index dfac3b497ad4f98961b2009a1d24ed04c5681043..8660bd5b764cd38f1a77d072869fea3cfa0aa7ec 100644 (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)
index 025b4ab6cf322a201a75c68e639521ddc483f54d..e340ddc6cb05eba1bafa2f8073ffa1be20fd1c65 100644 (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)