From aaa32f39420826bdbca30a3bc6212c38c267cda6 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Fri, 2 Jul 2021 10:01:46 +0200 Subject: [PATCH] Fix a problem of cus-start.el for remote default directories * lisp/cus-start.el: Bind `default-directory' to "/" when calling `shell-command-to-string' for a local value on DARWIN. --- lisp/cus-start.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/cus-start.el b/lisp/cus-start.el index b7afef6516d..3c2625a8c31 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el @@ -285,6 +285,7 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") ;; See bug#7135. (let* (file-name-handler-alist + (default-directory "/") (tmp (ignore-errors (shell-command-to-string "getconf DARWIN_USER_TEMP_DIR")))) -- 2.39.2