Commit f10deafb authored by Paul Eggert's avatar Paul Eggert

* fileio.c (Fdefault_file_modes): Block input while fiddling with umask.

Otherwise, the umask might be mistakenly 0 while handling input signals.
parent 297a8f1d
2012-06-20 Paul Eggert <eggert@cs.ucla.edu>
* fileio.c (Fdefault_file_modes): Block input while fiddling with umask.
Otherwise, the umask might be mistakenly 0 while handling input signals.
2012-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
* minibuf.c (Fread_string): Bind minibuffer-completion-table.
......
......@@ -3014,8 +3014,10 @@ The value is an integer. */)
int realmask;
Lisp_Object value;
BLOCK_INPUT;
realmask = umask (0);
umask (realmask);
UNBLOCK_INPUT;
XSETINT (value, (~ realmask) & 0777);
return value;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment