summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2010-09-17 15:54:59 -0600
committerEric Blake <eblake@redhat.com>2010-09-17 15:57:49 -0600
commit2dd21704d63c4e7567695a9e43dc1631b930efe2 (patch)
treecf090976bf354b83bc2946b9a95001bb411aa9fc /src
parent95732b834e5dead84fefa7b6d387f61048ed21b3 (diff)
downloadcoreutils-2dd21704d63c4e7567695a9e43dc1631b930efe2.tar.xz
maint: update to latest gnulib
* gnulib: Update to latest. * src/copy.c (copy_reg): Use fdutimens instead of gl_futimens. * src/touch.c (touch): Adjust parameter order. * tests/init.sh: Resync from upstream.
Diffstat (limited to 'src')
-rw-r--r--src/copy.c2
-rw-r--r--src/touch.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/copy.c b/src/copy.c
index 6d11ed868..df31592db 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -803,7 +803,7 @@ copy_reg (char const *src_name, char const *dst_name,
timespec[0] = get_stat_atime (src_sb);
timespec[1] = get_stat_mtime (src_sb);
- if (gl_futimens (dest_desc, dst_name, timespec) != 0)
+ if (fdutimens (dest_desc, dst_name, timespec) != 0)
{
error (0, errno, _("preserving times for %s"), quote (dst_name));
if (x->require_preserve)
diff --git a/src/touch.c b/src/touch.c
index 290f74300..6358b893c 100644
--- a/src/touch.c
+++ b/src/touch.c
@@ -163,7 +163,7 @@ touch (const char *file)
t = NULL;
}
- ok = (fdutimensat (AT_FDCWD, (fd == STDOUT_FILENO ? NULL : file), fd, t,
+ ok = (fdutimensat (fd, AT_FDCWD, (fd == STDOUT_FILENO ? NULL : file), t,
(no_dereference && fd == -1) ? AT_SYMLINK_NOFOLLOW : 0)
== 0);