]> git.eshelyaron.com Git - emacs.git/commitdiff
Make byte-recompile-directory less brittle
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 28 Jul 2021 16:10:59 +0000 (18:10 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 28 Jul 2021 16:10:59 +0000 (18:10 +0200)
* lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Don't
interpret files named "~" as $HOME (bug#49758).

lisp/emacs-lisp/bytecomp.el

index 1b64a06fe42c8ec127e652cee43f5ce46833200d..a6e7e03cb0a16056862711beebb45c0bff567419 100644 (file)
@@ -1857,8 +1857,8 @@ also be compiled."
        (while directories
         (setq directory (car directories))
         (message "Checking %s..." directory)
-         (dolist (file (directory-files directory))
-           (let ((source (expand-file-name file directory)))
+         (dolist (source (directory-files directory t))
+           (let ((file (file-name-nondirectory source)))
             (if (file-directory-p source)
                 (and (not (member file '("RCS" "CVS")))
                      (not (eq ?\. (aref file 0)))