Commit 636334d6 authored by Andreas Schwab's avatar Andreas Schwab

* fileio.c (Finsert_file_contents): Properly handle st_mtime

marker for non-existing file.
parent 9c46aab9
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
......
......@@ -4193,7 +4193,10 @@ variable `last-coding-system-used' to the coding system actually used. */)
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;
}
......
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