Subject: bug#12871: 24.3.50; error: The directory `/tmp/emacs1000' is unsafe

From: Tassilo Horn <[email-masked]>
Date: Tue, 13 Nov 2012 08:58:51 +0100

Andreas Schwab <[email-masked]> writes:

>>   (cl-letf (((default-file-modes) ?\700)) (make-directory dir t))
>
> default-file-modes is not a variable, it is a function.  You need to
> call set-default-file-modes to change the umask.

Rest assured the code is correct because (default-file-modes) returns a
setf-able place (see (info "(cl)Setf Extensions")).

Bye,
Tassilo