# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../coreutils/glibc26.patch # Copyright (C) 2007 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- --- ./lib/utimens.h 2007/02/23 18:25:21 1.3 +++ ./lib/utimens.h 2007/05/20 08:44:37 1.4 @@ -1,3 +1,3 @@ #include -int futimens (int, char const *, struct timespec const [2]); +int gl_futimens (int, char const *, struct timespec const [2]); int utimens (char const *, struct timespec const [2]); --- ./lib/utimens.c 2007/01/18 08:33:34 1.14 +++ ./lib/utimens.c 2007/05/19 16:37:04 1.15 @@ -75,8 +75,8 @@ Return 0 on success, -1 (setting errno) on failure. */ int -futimens (int fd ATTRIBUTE_UNUSED, - char const *file, struct timespec const timespec[2]) +gl_futimens (int fd ATTRIBUTE_UNUSED, + char const *file, struct timespec const timespec[2]) { /* Some Linux-based NFS clients are buggy, and mishandle time stamps of files in NFS file systems in some cases. We have no @@ -185,5 +185,5 @@ int utimens (char const *file, struct timespec const timespec[2]) { - return futimens (-1, file, timespec); + return gl_futimens (-1, file, timespec); } --- coreutils-6.9/src/copy.c.vanilla 2007-05-28 14:40:16.659329180 +0200 +++ coreutils-6.9/src/copy.c 2007-05-28 14:39:55.442120080 +0200 @@ -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 (gl_futimens (dest_desc, dst_name, timespec) != 0) { error (0, errno, _("preserving times for %s"), quote (dst_name)); if (x->require_preserve) --- coreutils-6.9/src/touch.c.vanilla 2007-05-28 14:40:16.659329180 +0200 +++ coreutils-6.9/src/touch.c 2007-05-28 14:39:55.590128515 +0200 @@ -167,7 +167,7 @@ if (amtime_now) { - /* Pass NULL to futimens so it will not fail if we have + /* Pass NULL to gl_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 = (gl_futimens (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0); if (fd == STDIN_FILENO) {