diff -ru coreutils-6.9.orig/lib/utimens.c coreutils-6.9/lib/utimens.c --- coreutils-6.9.orig/lib/utimens.c 2007-01-18 09:33:34.000000000 +0100 +++ coreutils-6.9/lib/utimens.c 2008-01-23 18:53:02.000000000 +0100 @@ -75,7 +75,7 @@ Return 0 on success, -1 (setting errno) on failure. */ int -futimens (int fd ATTRIBUTE_UNUSED, +cu_futimens (int fd ATTRIBUTE_UNUSED, char const *file, struct timespec const timespec[2]) { /* Some Linux-based NFS clients are buggy, and mishandle time stamps @@ -185,5 +185,5 @@ int utimens (char const *file, struct timespec const timespec[2]) { - return futimens (-1, file, timespec); + return cu_futimens (-1, file, timespec); } diff -ru coreutils-6.9.orig/lib/utimens.h coreutils-6.9/lib/utimens.h --- coreutils-6.9.orig/lib/utimens.h 2008-01-23 18:49:40.000000000 +0100 +++ coreutils-6.9/lib/utimens.h 2008-01-23 18:53:03.000000000 +0100 @@ -1,3 +1,3 @@ #include -int futimens (int, char const *, struct timespec const [2]); +int cu_futimens (int, char const *, struct timespec const [2]); int utimens (char const *, struct timespec const [2]); diff -ru coreutils-6.9.orig/src/copy.c coreutils-6.9/src/copy.c --- coreutils-6.9.orig/src/copy.c 2007-03-18 22:36:43.000000000 +0100 +++ coreutils-6.9/src/copy.c 2008-01-23 18:50:53.000000000 +0100 @@ -518,7 +518,7 @@ timespec[0] = get_stat_atime (src_sb); timespec[1] = get_stat_mtime (src_sb); - if (futimens (dest_desc, dst_name, timespec) != 0) + if (cu_futimens (dest_desc, dst_name, timespec) != 0) { error (0, errno, _("preserving times for %s"), quote (dst_name)); if (x->require_preserve) diff -ru coreutils-6.9.orig/src/touch.c coreutils-6.9/src/touch.c --- coreutils-6.9.orig/src/touch.c 2007-03-18 22:36:43.000000000 +0100 +++ coreutils-6.9/src/touch.c 2008-01-23 18:50:54.000000000 +0100 @@ -167,7 +167,7 @@ if (amtime_now) { - /* Pass NULL to futimens so it will not fail if we have + /* Pass NULL to cu_futimens so it will not fail if we have write access to the file, but don't own it. */ t = NULL; } @@ -182,7 +182,7 @@ t = timespec; } - ok = (futimens (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0); + ok = (cu_futimens (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0); if (fd == STDIN_FILENO) {