]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Bug#23883
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 2 Aug 2016 20:38:03 +0000 (22:38 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 2 Aug 2016 20:38:03 +0000 (22:38 +0200)
* lisp/net/tramp-sh.el (tramp-maybe-open-connection):
Call `process-actions' with adapted position.  The connection
buffer might have been cleaned up already.  (Bug#23883)

lisp/net/tramp-sh.el

index abfd56eb926b29752b6d82405f0e9938ff8169c1..62bf1a6c0819868d55eee770c174078a555af75b 100644 (file)
@@ -4853,7 +4853,10 @@ connection if a previous connection has died for some reason."
                    (tramp-message vec 3 "Sending command `%s'" command)
                    (tramp-send-command vec command t t)
                    (tramp-process-actions
-                    p vec pos tramp-actions-before-shell
+                    p vec
+                    (min
+                     pos (with-current-buffer (process-buffer p) (point-max)))
+                    tramp-actions-before-shell
                     (or connection-timeout tramp-connection-timeout))
                    (tramp-message
                     vec 3 "Found remote shell prompt on `%s'" l-host))