fileio.c (do_auto_save_make_dir): Make the auto-save-list-file

directory unreadable for better user privacy.
This commit is contained in:
Stephen Gildea 2006-07-08 11:42:40 +00:00
parent 6f6c5fb394
commit 26816cbf78
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
* fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
directory unreadable for better user privacy.
2006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
* syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.

View file

@ -5853,7 +5853,11 @@ static Lisp_Object
do_auto_save_make_dir (dir)
Lisp_Object dir;
{
return call2 (Qmake_directory, dir, Qt);
Lisp_Object mode;
call2 (Qmake_directory, dir, Qt);
XSETFASTINT (mode, 0700);
return Fset_file_modes (dir, mode);
}
static Lisp_Object