projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a5ff4d
)
Avoid backwards clock in movemail timestamps
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 21 Mar 2023 21:06:27 +0000
(14:06 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 21 Mar 2023 21:42:17 +0000
(14:42 -0700)
* lib-src/movemail.c (mbx_delimit_begin): Use ‘current_timespec’
instead of ‘time’ to generate the user-visible timestamp.
This works around the minor glitch caused by glibc bug 30200
<https://sourceware.org/bugzilla/show_bug.cgi?id=30200>.
lib-src/movemail.c
patch
|
blob
|
history
diff --git
a/lib-src/movemail.c
b/lib-src/movemail.c
index 8119046a916fa29d96f57d77331fcc9107c24f24..972ab7156fa45237da2d679e8f9011f2eca02004 100644
(file)
--- a/
lib-src/movemail.c
+++ b/
lib-src/movemail.c
@@
-846,7
+846,7
@@
movemail_strftime (char *s, size_t size, char const *format,
static bool
mbx_delimit_begin (FILE *mbf)
{
- time_t now =
time (NULL)
;
+ time_t now =
current_timespec ().tv_sec
;
struct tm *ltime = localtime (&now);
if (!ltime)
return false;