]> code.delx.au - gnu-emacs/blobdiff - src/ChangeLog
emacs: fix an auto-save permissions race condition
[gnu-emacs] / src / ChangeLog
index f10e2955164dc6892a5e21b9af1869e208b51e26..6c0185b7386140323724be288065ee10aedc11d3 100644 (file)
@@ -1,3 +1,15 @@
+2011-12-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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.
+
 2011-12-28  Kenichi Handa  <handa@m17n.org>
 
        * coding.c (Fdefine_coding_system_internal): Make an utf-8 base