+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.
&& 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;