Hi,

futimens is broken on GNU Hurd: it does not support UTIME_NOW or
UTIME_OMIT.  I filed a bug about that here:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762677

The Gnulib test suite already detects this:

  ../../gltests/test-futimens.h:138: assertion 'st3.st_atime == Y2K' failed

I have a patch which fixes this test failure, but I don't remember the
status of my copyright assignment and I don't want a fix for this to
accidentally get stuck on that.  Perhaps I can just describe it?  On the
Hurd, HAVE_UTIMENSAT is undefined but HAVE_FUTIMENS is defined.  Before
calling futimens, fdutimens must check whether UTIME_NOW or UTIME_OMIT
was used (i.e. adjustment_needed > 0).  If so, it should resolve them to
real times.

Thanks,

-- 
Colin Watson                                       [cjwat...@debian.org]

Reply via email to