diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2023-04-04 13:37:18 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2023-04-04 13:37:18 +0200 |
commit | 30692f16b1527b364f2b5a242c67e54c0fa83328 (patch) | |
tree | 49bcce9c0534326f8e170b1a4317fa9023d1b363 /lisp/net/tramp-sh.el | |
parent | b3046c6c1f29281e7437d5b6685e230c1cef631c (diff) | |
download | emacs-30692f16b1527b364f2b5a242c67e54c0fa83328.tar.gz |
Improve Tramp robustness
* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Check for `tramp-string-empty-or-nil-p'.
Diffstat (limited to 'lisp/net/tramp-sh.el')
-rw-r--r-- | lisp/net/tramp-sh.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 2ef97d540a0..2df3006c1d9 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -4496,7 +4496,7 @@ process to set up. VEC specifies the connection." ;; Set `remote-tty' process property. (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\"" 'noerror))) - (unless (string-empty-p tty) + (unless (tramp-string-empty-or-nil-p tty) (process-put proc 'remote-tty tty) (tramp-set-connection-property proc "remote-tty" tty))) |