aboutsummaryrefslogtreecommitdiffstats
path: root/packages/glibc/glibc-2.3.2/81_glibc232-utimes-fix.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/glibc/glibc-2.3.2/81_glibc232-utimes-fix.patch
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
downloadopenembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.gz
openembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.bz2
openembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.zip
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/glibc/glibc-2.3.2/81_glibc232-utimes-fix.patch')
-rw-r--r--packages/glibc/glibc-2.3.2/81_glibc232-utimes-fix.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/packages/glibc/glibc-2.3.2/81_glibc232-utimes-fix.patch b/packages/glibc/glibc-2.3.2/81_glibc232-utimes-fix.patch
index e69de29bb2..92cfa27bd5 100644
--- a/packages/glibc/glibc-2.3.2/81_glibc232-utimes-fix.patch
+++ b/packages/glibc/glibc-2.3.2/81_glibc232-utimes-fix.patch
@@ -0,0 +1,39 @@
+--- glibc-2.3.2.orig/sysdeps/posix/utimes.c 2001-07-07 20:21:27.000000000 +0100
++++ glibc-2.3.2/sysdeps/posix/utimes.c 2003-08-26 16:35:47.000000000 +0100
+@@ -31,8 +31,8 @@ __utimes (const char *file, const struct
+ if (tvp)
+ {
+ times = &buf;
+- times->actime = tvp[0].tv_sec + tvp[0].tv_usec / 1000000;
+- times->modtime = tvp[1].tv_sec + tvp[1].tv_usec / 1000000;
++ buf.actime = tvp[0].tv_sec + tvp[0].tv_usec / 1000000;
++ buf.modtime = tvp[1].tv_sec + tvp[1].tv_usec / 1000000;
+ }
+ else
+ times = NULL;
+--- glibc-2.3.2.orig/sysdeps/unix/sysv/linux/futimes.c 2003-08-26 16:34:20.000000000 +0100
++++ glibc-2.3.2/sysdeps/unix/sysv/linux/futimes.c 2003-08-26 16:35:17.000000000 +0100
+@@ -57,8 +57,8 @@ __futimes (int fd, const struct timeval
+ if (tvp != NULL)
+ {
+ times = &buf;
+- buf.actime = tvp[0].tv_sec + tvp[0].tv_usec >= 500000;
+- buf.modtime = tvp[1].tv_sec + tvp[1].tv_usec >= 500000;
++ buf.actime = tvp[0].tv_sec + tvp[0].tv_usec / 1000000;
++ buf.modtime = tvp[1].tv_sec + tvp[1].tv_usec / 1000000;
+ }
+ else
+ times = NULL;
+--- glibc-2.3.2.orig/sysdeps/unix/sysv/linux/utimes.c 2003-08-26 16:34:21.000000000 +0100
++++ glibc-2.3.2/sysdeps/unix/sysv/linux/utimes.c 2003-08-26 16:35:34.000000000 +0100
+@@ -47,8 +47,8 @@ __utimes (const char *file, const struct
+ if (tvp != NULL)
+ {
+ times = &buf;
+- buf.actime = tvp[0].tv_sec + tvp[0].tv_usec >= 500000;
+- buf.modtime = tvp[1].tv_sec + tvp[1].tv_usec >= 500000;
++ buf.actime = tvp[0].tv_sec + tvp[0].tv_usec / 1000000;
++ buf.modtime = tvp[1].tv_sec + tvp[1].tv_usec / 1000000;
+ }
+ else
+ times = NULL;