summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2022-05-30 06:30:24 +0200
committerStefan Kangas <stefan@marxist.se>2022-05-30 06:30:24 +0200
commit52d41f2750c0f66d7f7ba8e198832734fe750fa5 (patch)
tree590978976bf7d3889b7d3ae7bab5d5144b1d30cd
parent48ef8ab15f0e884ac97736d1d24af7eecf9313cc (diff)
parent1b7b69e764370288583aeeda38069a3c8f9ec912 (diff)
downloademacs-52d41f2750c0f66d7f7ba8e198832734fe750fa5.tar.gz
Merge from origin/emacs-28
1b7b69e764 Some Tramp cleanup on MS Windows
-rw-r--r--lisp/net/tramp.el3
-rw-r--r--test/lisp/net/tramp-tests.el1
2 files changed, 3 insertions, 1 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index ef1e4206b6c..27c6dfde334 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -505,7 +505,8 @@ interpreted as a regular expression which always matches."
;; either lower case or upper case letters. See
;; <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=38079#20>.
(defcustom tramp-restricted-shell-hosts-alist
- (when (eq system-type 'windows-nt)
+ (when (and (eq system-type 'windows-nt)
+ (not (string-match-p "sh$" tramp-encoding-shell)))
(list (format "\\`\\(%s\\|%s\\)\\'"
(regexp-quote (downcase tramp-system-name))
(regexp-quote (upcase tramp-system-name)))))
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 1532cbe0493..569e9506d1e 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -5092,6 +5092,7 @@ If UNSTABLE is non-nil, the test is tagged as `:unstable'."
:tags '(:expensive-test :tramp-asynchronous-processes :unstable)
(skip-unless (tramp--test-enabled))
(skip-unless (tramp--test-sh-p))
+ (skip-unless (not (tramp--test-windows-nt-p)))
(skip-unless (not (tramp--test-crypt-p)))
;; Since Emacs 27.1.
(skip-unless (macrop 'with-connection-local-variables))