emacs-diffs
[Top][All Lists]
Advanced

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

master 1d0a601: Make a more robust check in Tramp using scripts


From: Michael Albinus
Subject: master 1d0a601: Make a more robust check in Tramp using scripts
Date: Tue, 7 Dec 2021 10:20:21 -0500 (EST)

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

    Make a more robust check in Tramp using scripts
    
    * lisp/net/tramp-sh.el (tramp-find-inline-encoding):
    Check, whether scripts in `tramp-remote-coding-commands' are
    expandable.
---
 lisp/net/tramp-sh.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index c2a0231..72eb63d 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -4597,6 +4597,8 @@ Goes through the list `tramp-local-coding-commands' and
                          (value (symbol-value rem-enc)))
                      (while (string-match "-" name)
                        (setq name (replace-match "_" nil t name)))
+                     (unless (tramp-expand-script vec value)
+                       (throw 'wont-work-remote nil))
                      (tramp-maybe-send-script vec value name)
                      (setq rem-enc name)))
                  (tramp-message
@@ -4614,6 +4616,8 @@ Goes through the list `tramp-local-coding-commands' and
                          (value (symbol-value rem-dec)))
                      (while (string-match "-" name)
                        (setq name (replace-match "_" nil t name)))
+                     (unless (tramp-expand-script vec value)
+                       (throw 'wont-work-remote nil))
                      (tramp-maybe-send-script vec value name)
                      (setq rem-dec name)))
                  (tramp-message



reply via email to

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