]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a problem of cus-start.el for remote default directories
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 2 Jul 2021 08:01:46 +0000 (10:01 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 2 Jul 2021 08:01:46 +0000 (10:01 +0200)
* lisp/cus-start.el: Bind `default-directory' to "/" when calling
`shell-command-to-string' for a local value on DARWIN.

lisp/cus-start.el

index b7afef6516d9fb601667667573592c18c2678395..3c2625a8c31cd32c3097461160ab773e60473eb6 100644 (file)
@@ -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"))))