summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/autoload.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-12-29 12:44:31 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2011-12-29 12:44:31 -0800
commit09450bae84788f9645716e17006e222adf1dec7f (patch)
tree09f5edb41135a2382c22449cd3177ffa78d441dd /lisp/emacs-lisp/autoload.el
parent2cae5ba432fc30042950c073b7ec7807bb98bcde (diff)
downloademacs-09450bae84788f9645716e17006e222adf1dec7f.tar.gz
emacs-09450bae84788f9645716e17006e222adf1dec7f.tar.bz2
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 'lisp/emacs-lisp/autoload.el')
0 files changed, 0 insertions, 0 deletions