diff options
| author | Paul Eggert | 2011-12-29 12:44:31 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-12-29 12:44:31 -0800 |
| commit | 09450bae84788f9645716e17006e222adf1dec7f (patch) | |
| tree | 09f5edb41135a2382c22449cd3177ffa78d441dd /src/ChangeLog | |
| parent | 2cae5ba432fc30042950c073b7ec7807bb98bcde (diff) | |
| download | emacs-09450bae84788f9645716e17006e222adf1dec7f.tar.gz emacs-09450bae84788f9645716e17006e222adf1dec7f.zip | |
emacs: fix an auto-save permissions race condition
* fileio.c (auto_saving_dir_umask): New static var.
(Fmake_directory_internal): Use it.
(do_auto_save_make_dir): Set it, instead of invoking chmod after
creating the directory. The old code temporarily assigns
too-generous permissions to the directory.
(do_auto_save_eh): Clear it.
(Fdo_auto_save): Catch all errrors, not just file errors, so
that the var is always cleared.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f10e2955164..6c0185b7386 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2011-12-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | emacs: fix an auto-save permissions race condition | ||
| 4 | * fileio.c (auto_saving_dir_umask): New static var. | ||
| 5 | (Fmake_directory_internal): Use it. | ||
| 6 | (do_auto_save_make_dir): Set it, instead of invoking chmod after | ||
| 7 | creating the directory. The old code temporarily assigns | ||
| 8 | too-generous permissions to the directory. | ||
| 9 | (do_auto_save_eh): Clear it. | ||
| 10 | (Fdo_auto_save): Catch all errrors, not just file errors, so | ||
| 11 | that the var is always cleared. | ||
| 12 | |||
| 1 | 2011-12-28 Kenichi Handa <handa@m17n.org> | 13 | 2011-12-28 Kenichi Handa <handa@m17n.org> |
| 2 | 14 | ||
| 3 | * coding.c (Fdefine_coding_system_internal): Make an utf-8 base | 15 | * coding.c (Fdefine_coding_system_internal): Make an utf-8 base |