summaryrefslogtreecommitdiff
path: root/lisp/gnus/mm-archive.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/gnus/mm-archive.el')
-rw-r--r--lisp/gnus/mm-archive.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/gnus/mm-archive.el b/lisp/gnus/mm-archive.el
index 71676c12a46..56253afa193 100644
--- a/lisp/gnus/mm-archive.el
+++ b/lisp/gnus/mm-archive.el
@@ -42,8 +42,9 @@
dir)
(unless decoder
(error "No decoder found for %s" type))
- (setq dir (make-temp-file (expand-file-name "emm." mm-tmp-directory) 'dir))
- (set-file-modes dir #o700)
+ (with-file-modes #o700
+ (setq dir (make-temp-file (expand-file-name "emm." mm-tmp-directory)
+ 'dir)))
(unwind-protect
(progn
(mm-with-unibyte-buffer