[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/emacs-24 r108670: * fileio.c (Fdefault_file
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/emacs-24 r108670: * fileio.c (Fdefault_file_modes): Block input while fiddling with umask. |
Date: |
Fri, 02 Nov 2012 02:33:21 -0000 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 108670
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Wed 2012-06-20 14:20:06 -0700
message:
* fileio.c (Fdefault_file_modes): Block input while fiddling with umask.
Otherwise, the umask might be mistakenly 0 while handling input signals.
modified:
src/ChangeLog
src/fileio.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2012-06-19 18:57:39 +0000
+++ b/src/ChangeLog 2012-06-20 21:20:06 +0000
@@ -1,3 +1,8 @@
+2012-06-20 Paul Eggert <address@hidden>
+
+ * 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 <address@hidden>
* minibuf.c (Fread_string): Bind minibuffer-completion-table.
=== modified file 'src/fileio.c'
--- a/src/fileio.c 2012-06-16 12:24:15 +0000
+++ b/src/fileio.c 2012-06-20 21:20:06 +0000
@@ -3014,8 +3014,10 @@
int realmask;
Lisp_Object value;
+ BLOCK_INPUT;
realmask = umask (0);
umask (realmask);
+ UNBLOCK_INPUT;
XSETINT (value, (~ realmask) & 0777);
return value;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/emacs-24 r108670: * fileio.c (Fdefault_file_modes): Block input while fiddling with umask.,
Paul Eggert <=