Commit 5f089ac9 authored by Daniel Colascione's avatar Daniel Colascione
Browse files

Run tramp cleanup in correct buffer

Fixes bug #37297.

* lisp/net/tramp.el (tramp-process-sentinel): Do process-end cleanup
in the tramp buffer, not a random file buffer.
parent 97ffa339
Pipeline #3040 passed with stage
in 62 minutes and 45 seconds
......@@ -4210,10 +4210,11 @@ the remote host use line-endings as defined in the variable
(when vec
(tramp-message vec 5 "Sentinel called: `%S' `%s'" proc event)
(tramp-flush-connection-properties proc)
(tramp-flush-directory-properties vec ""))
(goto-char (point-max))
(when (and prompt (re-search-backward (regexp-quote prompt) nil t))
(delete-region (point) (point-max))))))
(tramp-flush-directory-properties vec "")
(with-current-buffer (tramp-get-buffer vec)
(goto-char (point-max))
(when (and prompt (re-search-backward (regexp-quote prompt) nil t))
(delete-region (point) (point-max))))))))
(defun tramp-get-inode (vec)
"Returns the virtual inode number.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment