]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/glibc/glibc-2.3.2/81_glibc232-utimes-fix.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / glibc / glibc-2.3.2 / 81_glibc232-utimes-fix.patch
1 --- glibc-2.3.2.orig/sysdeps/posix/utimes.c     2001-07-07 20:21:27.000000000 +0100
2 +++ glibc-2.3.2/sysdeps/posix/utimes.c  2003-08-26 16:35:47.000000000 +0100
3 @@ -31,8 +31,8 @@ __utimes (const char *file, const struct
4    if (tvp)
5      {
6        times = &buf;
7 -      times->actime = tvp[0].tv_sec + tvp[0].tv_usec / 1000000;
8 -      times->modtime = tvp[1].tv_sec + tvp[1].tv_usec / 1000000;
9 +      buf.actime = tvp[0].tv_sec + tvp[0].tv_usec / 1000000;
10 +      buf.modtime = tvp[1].tv_sec + tvp[1].tv_usec / 1000000;
11      }
12    else
13      times = NULL;
14 --- glibc-2.3.2.orig/sysdeps/unix/sysv/linux/futimes.c  2003-08-26 16:34:20.000000000 +0100
15 +++ glibc-2.3.2/sysdeps/unix/sysv/linux/futimes.c       2003-08-26 16:35:17.000000000 +0100
16 @@ -57,8 +57,8 @@ __futimes (int fd, const struct timeval 
17    if (tvp != NULL)
18      {
19        times = &buf;
20 -      buf.actime = tvp[0].tv_sec + tvp[0].tv_usec >= 500000;
21 -      buf.modtime = tvp[1].tv_sec + tvp[1].tv_usec >= 500000;
22 +      buf.actime = tvp[0].tv_sec + tvp[0].tv_usec / 1000000;
23 +      buf.modtime = tvp[1].tv_sec + tvp[1].tv_usec / 1000000;
24      }
25    else
26      times = NULL;
27 --- glibc-2.3.2.orig/sysdeps/unix/sysv/linux/utimes.c   2003-08-26 16:34:21.000000000 +0100
28 +++ glibc-2.3.2/sysdeps/unix/sysv/linux/utimes.c        2003-08-26 16:35:34.000000000 +0100
29 @@ -47,8 +47,8 @@ __utimes (const char *file, const struct
30    if (tvp != NULL)
31      {
32        times = &buf;
33 -      buf.actime = tvp[0].tv_sec + tvp[0].tv_usec >= 500000;
34 -      buf.modtime = tvp[1].tv_sec + tvp[1].tv_usec >= 500000;
35 +      buf.actime = tvp[0].tv_sec + tvp[0].tv_usec / 1000000;
36 +      buf.modtime = tvp[1].tv_sec + tvp[1].tv_usec / 1000000;
37      }
38    else
39      times = NULL;