emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-26 bf9b972: Fix byte compilation of files with leadi


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 bf9b972: Fix byte compilation of files with leading directories
Date: Sat, 2 Dec 2017 06:30:49 -0500 (EST)

branch: emacs-26
commit bf9b972843113dd1fb416f5bd7cb127eaf4927d0
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix byte compilation of files with leading directories
    
    * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Pass basename
    of target-file to make-temp-file, in case target-file includes a
    leading directory that might not exist under TMPDIR.  See
    http://lists.gnu.org/archive/html/emacs-devel/2017-11/msg00680.html
    for the details.
---
 lisp/emacs-lisp/bytecomp.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index e5a1ea7..f69ac7f 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1931,7 +1931,8 @@ The value is non-nil if there were no errors, nil if 
errors."
                       ;; process is trying to load target-file (eg in a
                       ;; parallel bootstrap), it does not risk getting a
                       ;; half-finished file.  (Bug#4196)
-                      (tempfile (make-temp-file target-file))
+                      (tempfile
+                        (make-temp-file (file-name-nondirectory target-file)))
                       (default-modes (default-file-modes))
                       (temp-modes (logand default-modes #o600))
                       (desired-modes (logand default-modes #o666))



reply via email to

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