futimens, utimensat: work around Linux bug
authorEric Blake <ebb9@byu.net>
Thu, 17 Dec 2009 14:32:00 +0000 (07:32 -0700)
committerEric Blake <ebb9@byu.net>
Sat, 19 Dec 2009 23:58:45 +0000 (16:58 -0700)
commit9a669cf64253a2b2149d7f7cc5e0664c1bc7dda9
treeeb13f397b1f14e24aa856ca20dbf15ce47e91f7b
parent68f0f1af0f2cc75615d89234494dca043e99a73d
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.
ChangeLog
lib/futimens.c
lib/utimensat.c
m4/futimens.m4
m4/utimensat.m4