Commit 38fe4f64 authored by Michael Albinus's avatar Michael Albinus
Browse files

* fileio.c (auto_save_1) Call Ffile_modes for remote files.

parent 2308f447
2004-10-03 Michael Albinus <michael.albinus@gmx.de>
* fileio.c (auto_save_1) Call Ffile_modes for remote files.
2004-09-30 Kenichi Handa <handa@m17n.org>
 
* process.c (send_process): Free composition data.
......
......@@ -5718,6 +5718,9 @@ auto_save_1 ()
&& stat (SDATA (current_buffer->filename), &st) >= 0)
/* But make sure we can overwrite it later! */
auto_save_mode_bits = st.st_mode | 0600;
else if (! NILP (current_buffer->filename))
/* Remote files don't cooperate with stat. */
auto_save_mode_bits = XINT (Ffile_modes (current_buffer->filename)) | 0600;
else
auto_save_mode_bits = 0666;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment