Package: bsd-mailx / 8.1.2-0.20141216cvs-2

17-Intialize-tv_used.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Robert Luberda <robert@debian.org>
Date: Thu, 11 Jul 2002 05:30:00 +0200
Subject: 17 Intialize tv_used

aux.c: in function alter() do initialize tv_usec part of the timeval structure
 used to set modification time on the mailbox file (closes: #152038).
Thanks to John Girash for help.
---
 aux.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/aux.c b/aux.c
index bfc9140..d6d3344 100644
--- a/aux.c
+++ b/aux.c
@@ -339,6 +339,7 @@ alter(char *name)
 	TIMESPEC_TO_TIMEVAL(&tv[1], &sb.st_mtimespec);
 #else
 	tv[1].tv_sec = sb.st_mtime;
+	tv[1].tv_usec = 0;
 #endif
 	(void)utimes(name, tv);
 }