* fileio.c (Fverify_visited_file_modtime): Avoid time overflow
if b->modtime has its maximal value.
This commit is contained in:
parent
76118f10b0
commit
6f9028d2dc
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
2011-06-02 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* fileio.c (Fverify_visited_file_modtime): Avoid time overflow
|
||||
if b->modtime has its maximal value.
|
||||
|
||||
* dired.c (Ffile_attributes): Don't assume EMACS_INT has >32 bits.
|
||||
|
||||
* lisp.h: Include <intprops.h>, as it'll useful in later changes.
|
||||
|
|
|
@ -4960,7 +4960,7 @@ See Info node `(elisp)Modification Time' for more details. */)
|
|||
if ((st.st_mtime == b->modtime
|
||||
/* If both are positive, accept them if they are off by one second. */
|
||||
|| (st.st_mtime > 0 && b->modtime > 0
|
||||
&& (st.st_mtime == b->modtime + 1
|
||||
&& (st.st_mtime - 1 == b->modtime
|
||||
|| st.st_mtime == b->modtime - 1)))
|
||||
&& (st.st_size == b->modtime_size
|
||||
|| b->modtime_size < 0))
|
||||
|
|
Loading…
Add table
Reference in a new issue