]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: update to latest gnulib
authorEric Blake <eblake@redhat.com>
Thu, 16 Sep 2010 23:38:00 +0000 (17:38 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 17 Sep 2010 14:42:52 +0000 (08:42 -0600)
* gnulib: Update to latest.
* bootstrap.conf (gnulib_modules): Add fdutimensat.
* src/touch.c (touch): Use fdutimensat instead of gl_futimens.

bootstrap.conf
gnulib
src/touch.c

index a0004ac4fff66e7da8ea6a0f6c15447861243f56..77a209bf6fc618ac27b1e684f6928d3a4100658d 100644 (file)
@@ -86,6 +86,7 @@ gnulib_modules="
   fcntl
   fcntl-safer
   fdl
+  fdutimensat
   file-type
   fileblocks
   filemode
diff --git a/gnulib b/gnulib
index 583c47de09e3fb912baa00ddd405ab66fdad433c..18aae5b74420237d8c827e7c68312c5b71d659dc 160000 (submodule)
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 583c47de09e3fb912baa00ddd405ab66fdad433c
+Subproject commit 18aae5b74420237d8c827e7c68312c5b71d659dc
index e5224a45a964c5a1ece747380bcfc1bbfb7d9155..290f74300576a93378f159be94cb0d494a59ee9e 100644 (file)
@@ -163,8 +163,9 @@ touch (const char *file)
       t = NULL;
     }
 
-  ok = ((no_dereference && fd == -1) ? lutimens (file, t)
-        : gl_futimens (fd, (fd == STDOUT_FILENO ? NULL : file), t)) == 0;
+  ok = (fdutimensat (AT_FDCWD, (fd == STDOUT_FILENO ? NULL : file), fd, t,
+                     (no_dereference && fd == -1) ? AT_SYMLINK_NOFOLLOW : 0)
+        == 0);
 
   if (fd == STDIN_FILENO)
     {