mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
Only check regular files for package metadata
* lisp/emacs-lisp/package.el (package-dir-info): Do not check files that do not satisfy 'file-regular-p' when trying to find the file with the package metadata. (Bug#79742)
This commit is contained in:
parent
567155047c
commit
52b24ed7aa
1 changed files with 1 additions and 1 deletions
|
|
@ -1105,7 +1105,7 @@ The return result is a `package-desc'."
|
|||
(dolist (file (sort files :key #'length))
|
||||
;; The file may be a link to a nonexistent file; e.g., a
|
||||
;; lock file.
|
||||
(when (file-exists-p file)
|
||||
(when (and (file-readable-p file) (file-regular-p file))
|
||||
(with-temp-buffer
|
||||
(insert-file-contents file)
|
||||
;; When we find the file with the data,
|
||||
|
|
|
|||
Loading…
Reference in a new issue