diff options
| author | Michael Albinus | 2023-07-27 09:30:41 +0200 |
|---|---|---|
| committer | Michael Albinus | 2023-07-27 09:30:41 +0200 |
| commit | b936ff0963e69d30d77cec5323a95bc2385cf212 (patch) | |
| tree | eb54f1b59d29dd5ca5ccac346dd2c431a1c82371 | |
| parent | 5d245e9d0d85bc85bacd701d6fe82620816b2e1f (diff) | |
| download | emacs-b936ff0963e69d30d77cec5323a95bc2385cf212.tar.gz emacs-b936ff0963e69d30d77cec5323a95bc2385cf212.zip | |
Fix Tramp error on macOS
* lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options):
Don't use an absolute ControlPath on macOS. (Bug#64880)
| -rw-r--r-- | lisp/net/tramp-sh.el | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index f2cbb74acd2..3ab58c2722e 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -4867,12 +4867,17 @@ Goes through the list `tramp-inline-compress-commands'." | |||
| 4867 | " -o ControlPath=" | 4867 | " -o ControlPath=" |
| 4868 | (if (eq tramp-use-connection-share 'suppress) | 4868 | (if (eq tramp-use-connection-share 'suppress) |
| 4869 | "none" | 4869 | "none" |
| 4870 | ;; Hashed tokens are introduced in OpenSSH 6.7. | 4870 | ;; Hashed tokens are introduced in OpenSSH 6.7. On macOS |
| 4871 | (expand-file-name | 4871 | ;; we cannot use an absolute file name, it is too long. |
| 4872 | (if (tramp-ssh-option-exists-p vec "ControlPath=tramp.%C") | 4872 | ;; See Bug#19702. |
| 4873 | "tramp.%%C" "tramp.%%r@%%h:%%p") | 4873 | (if (eq system-type 'darwin) |
| 4874 | (or small-temporary-file-directory | 4874 | (if (tramp-ssh-option-exists-p vec "ControlPath=tramp.%C") |
| 4875 | tramp-compat-temporary-file-directory))) | 4875 | "tramp.%%C" "tramp.%%r@%%h:%%p") |
| 4876 | (expand-file-name | ||
| 4877 | (if (tramp-ssh-option-exists-p vec "ControlPath=tramp.%C") | ||
| 4878 | "tramp.%%C" "tramp.%%r@%%h:%%p") | ||
| 4879 | (or small-temporary-file-directory | ||
| 4880 | tramp-compat-temporary-file-directory)))) | ||
| 4876 | 4881 | ||
| 4877 | ;; ControlPersist option is introduced in OpenSSH 5.6. | 4882 | ;; ControlPersist option is introduced in OpenSSH 5.6. |
| 4878 | (when (and (not (eq tramp-use-connection-share 'suppress)) | 4883 | (when (and (not (eq tramp-use-connection-share 'suppress)) |