[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43532: [PATCH] Fix timestamp check when loading from eln (bug #43532
From: |
Andrew Whatson |
Subject: |
bug#43532: [PATCH] Fix timestamp check when loading from eln (bug #43532) |
Date: |
Thu, 15 Oct 2020 16:52:51 +1000 |
* src/lread.c (maybe_swap_for_eln): Allow eln files to have the
same timestamp as their source file.
---
src/lread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lread.c b/src/lread.c
index ea31131b75..ab16fdadb4 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1622,7 +1622,7 @@ maybe_swap_for_eln (Lisp_Object *filename, int *fd,
struct timespec mtime)
else
{
struct timespec eln_mtime = get_stat_mtime (&eln_st);
- if (timespec_cmp (eln_mtime, mtime) > 0)
+ if (timespec_cmp (eln_mtime, mtime) >= 0)
{
*filename = eln_name;
emacs_close (*fd);
--
2.28.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#43532: [PATCH] Fix timestamp check when loading from eln (bug #43532),
Andrew Whatson <=