marker for non-existing file.
+2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
+
+ * fileio.c (Finsert_file_contents): Properly handle st_mtime
+ marker for non-existing file. (Bug#11852)
+
2012-07-03 Glenn Morris <rgm@gnu.org>
* lisp.h (Fread_file_name): Restore EXFUN (it's not a normal DEFUN
if (NILP (handler))
{
- current_buffer->modtime = get_stat_mtime (&st);
+ if (st.st_mtime == -1)
+ EMACS_SET_INVALID_TIME (current_buffer->modtime);
+ else
+ current_buffer->modtime = get_stat_mtime (&st);
current_buffer->modtime_size = st.st_size;
BVAR (current_buffer, filename) = orig_filename;
}