Age | Commit message (Collapse) | Author |
|
Don't assume that futimes failing means we must fail.
|
|
(futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
(futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
|
|
(ftimens): Support having a null PATH if the file descriptor
is nonnegative.
|
|
Prefer it to futimes since it doesn't have the futimes bug.
* m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
|
|
|
|
for known valid error numbers rather than observed invalid ones.
|
|
can also fail with errno == ENOSYS in that case.
Patch from Dmitry V. Levin.
|
|
errno == ENOENT.
|
|
(futimens): New function, which uses futimes if available.
(futimens, utimens): Support timespec==NULL, with same semantics
as utime and utimens.
|
|
Test HAVE_WORKING_UTIMES instead of HAVE_UTIMES.
|
|
Prefer utime, since it works and utimes doesn't on some systems.
|