[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 e11c9f9c6e8: Handle wrong login program in Tramp
From: |
Michael Albinus |
Subject: |
emacs-29 e11c9f9c6e8: Handle wrong login program in Tramp |
Date: |
Sun, 28 Jan 2024 04:31:57 -0500 (EST) |
branch: emacs-29
commit e11c9f9c6e843779c4b69097490dd78de522a79d
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>
Handle wrong login program in Tramp
* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Exit remote
shell when login fails.
---
lisp/net/tramp-sh.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 38925652376..1301cd633da 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -5340,7 +5340,7 @@ connection if a previous connection has died for some
reason."
"2>" (tramp-get-remote-null-device previous-hop))
?l (concat remote-shell " " extra-args " -i"))
;; A restricted shell does not allow "exec".
- (when r-shell '("&&" "exit" "||" "exit")))
+ (when r-shell '("&&" "exit")) '("||" "exit"))
" "))
;; Send the command.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 e11c9f9c6e8: Handle wrong login program in Tramp,
Michael Albinus <=