summaryrefslogtreecommitdiff
path: root/debian/patches/stat_round.patch
blob: 083f317ff35f7f5018632ac20f7dcd778422d3e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Index: libdiskfs/file-utimes.c
===================================================================
RCS file: /cvsroot/hurd/hurd/libdiskfs/file-utimes.c,v
retrieving revision 1.9
diff -u -r1.9 file-utimes.c
--- libdiskfs/file-utimes.c	2 Feb 2009 03:04:46 -0000	1.9
+++ libdiskfs/file-utimes.c	4 Apr 2009 22:47:50 -0000
@@ -33,7 +33,7 @@
 			 else
 			   {
 			     np->dn_stat.st_atim.tv_sec = atime.seconds;
-			     np->dn_stat.st_atim.tv_nsec = atime.microseconds * 1000;
+			     np->dn_stat.st_atim.tv_nsec = 0;
 			     np->dn_set_atime = 0;
 			   }
 			 
@@ -42,7 +42,7 @@
 			 else
 			   {
 			     np->dn_stat.st_mtim.tv_sec = mtime.seconds;
-			     np->dn_stat.st_mtim.tv_nsec = mtime.microseconds * 1000;
+			     np->dn_stat.st_mtim.tv_nsec = 0;
 			     np->dn_set_mtime = 0;
 			   }
 			 
Index: libdiskfs/node-times.c
===================================================================
RCS file: /cvsroot/hurd/hurd/libdiskfs/node-times.c,v
retrieving revision 1.15
diff -u -r1.15 node-times.c
--- libdiskfs/node-times.c	16 Feb 2009 16:06:00 -0000	1.15
+++ libdiskfs/node-times.c	4 Apr 2009 22:47:51 -0000
@@ -53,21 +53,21 @@
   if (np->dn_set_mtime)
     {
       np->dn_stat.st_mtim.tv_sec = t.tv_sec;
-      np->dn_stat.st_mtim.tv_nsec = t.tv_usec * 1000;
+      np->dn_stat.st_mtim.tv_nsec = 0;
       np->dn_stat_dirty = 1;
       np->dn_set_mtime = 0;
     }
   if (np->dn_set_atime)
     {
       np->dn_stat.st_atim.tv_sec = t.tv_sec;
-      np->dn_stat.st_atim.tv_nsec = t.tv_usec * 1000;
+      np->dn_stat.st_atim.tv_nsec = 0;
       np->dn_stat_dirty = 1;
       np->dn_set_atime = 0;
     }
   if (np->dn_set_ctime)
     {
       np->dn_stat.st_ctim.tv_sec = t.tv_sec;
-      np->dn_stat.st_ctim.tv_nsec = t.tv_usec * 1000;
+      np->dn_stat.st_ctim.tv_nsec = 0;
       np->dn_stat_dirty = 1;
       np->dn_set_ctime = 0;
     }