emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 04aa76bb920 1/2: Fix CRLF handling in Tramp


From: Michael Albinus
Subject: master 04aa76bb920 1/2: Fix CRLF handling in Tramp
Date: Wed, 22 Nov 2023 07:50:23 -0500 (EST)

branch: master
commit 04aa76bb9205a0d5f1feff091c6c561bd9db54a5
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    Fix CRLF handling in Tramp
    
    * lisp/net/tramp-sh.el (tramp-send-command-and-read): Use 'space'
    instead of 'blank' in rx expression, in order to handle also CR
    and alike.  Reported by Dominique Quatravaux
    <dominique@quatravaux.org>.
---
 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 186ef12775a..3b47dafcb46 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -5540,7 +5540,7 @@ raises an error."
                     (unless noerror signal-hook-function)))
                (read (current-buffer)))
            ;; Error handling.
-           (when (search-forward-regexp (rx (not blank)) (line-end-position) t)
+           (when (search-forward-regexp (rx (not space)) (line-end-position) t)
              (error nil)))
        (error (unless noerror
                 (tramp-error



reply via email to

[Prev in Thread] Current Thread [Next in Thread]