diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index bbc1e8242ac..e262576524e 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -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,