Handle wrong login program in Tramp

* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Exit remote
shell when login fails.
This commit is contained in:
Michael Albinus 2024-01-28 10:31:45 +01:00
parent b2db82c5ae
commit e11c9f9c6e

View file

@ -5340,7 +5340,7 @@ connection if a previous connection has died for some reason."
"2>" (tramp-get-remote-null-device previous-hop)) "2>" (tramp-get-remote-null-device previous-hop))
?l (concat remote-shell " " extra-args " -i")) ?l (concat remote-shell " " extra-args " -i"))
;; A restricted shell does not allow "exec". ;; A restricted shell does not allow "exec".
(when r-shell '("&&" "exit" "||" "exit"))) (when r-shell '("&&" "exit")) '("||" "exit"))
" ")) " "))
;; Send the command. ;; Send the command.