From bef9fcc999af5ed5524990c86968be9f9c4497ea Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Fri, 14 Jan 2022 16:17:33 +0100 Subject: [PATCH] image-dired: Use MD5 for thumb filename generation * lisp/image-dired.el (image-dired-thumb-name): Revert back to MD5 for file name generation to preserve backwards-compatibility. (Bug#53229) --- lisp/image-dired.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/image-dired.el b/lisp/image-dired.el index 536f29441ae..b81df8567bd 100644 --- a/lisp/image-dired.el +++ b/lisp/image-dired.el @@ -609,9 +609,7 @@ See also `image-dired-thumbnail-storage'." ((eq 'use-image-dired-dir image-dired-thumbnail-storage) (let* ((f (expand-file-name file)) (hash - ;; SHA1 is slightly faster than MD5, so let's use it. - ;; (We don't need anything crytographically strong.) - (sha1 (file-name-as-directory (file-name-directory f))))) + (md5 (file-name-as-directory (file-name-directory f))))) (format "%s%s%s.thumb.%s" (file-name-as-directory (expand-file-name (image-dired-dir))) (file-name-base f) -- 2.39.2