summaryrefslogtreecommitdiff
path: root/lib/futimens.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-12-17 07:32:00 -0700
committerEric Blake <ebb9@byu.net>2009-12-19 16:58:45 -0700
commit9a669cf64253a2b2149d7f7cc5e0664c1bc7dda9 (patch)
treeeb13f397b1f14e24aa856ca20dbf15ce47e91f7b /lib/futimens.c
parent68f0f1af0f2cc75615d89234494dca043e99a73d (diff)
downloadgnulib-9a669cf64253a2b2149d7f7cc5e0664c1bc7dda9.tar.gz
futimens, utimensat: work around Linux bug
futimens is trivial - let fdutimens do the work. utimensat is tougher: we don't want to call into local_utimensat, because that can cause unnecessary chdir. So we have to repeat the logic from utimens.c. * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug. * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise. * lib/utimensat.c (rpl_utimensat): Work around it. * lib/futimens.c (rpl_futimens): Adjust comment.
Diffstat (limited to 'lib/futimens.c')
-rw-r--r--lib/futimens.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/futimens.c b/lib/futimens.c
index 031a464359..e93ffc470a 100644
--- a/lib/futimens.c
+++ b/lib/futimens.c
@@ -32,6 +32,6 @@ futimens (int fd, struct timespec const times[2])
{
/* fdutimens also works around bugs in native futimens, when running
with glibc compiled against newer headers but on a Linux kernel
- older than 2.6.26. */
+ older than 2.6.32. */
return fdutimens (NULL, fd, times);
}