linux: Fix time64 support for futimesat

System Internals / glibc - Adhemerval Zanella [linaro.org] - 16 October 2020 17:19 UTC

The generic implementation does not support time64 and the default one return overflow for invalid tv_sec with UTIME_NOW / UTIME_OMIT (which is valid since tv_sec in such cases is ignored by the kernel).

Checked on x86_64-linux-gnu and i686-linux-gnu (on 5.4 and on 4.15 kernel).

01f33a9acc linux: Fix time64 support for futimesat
sysdeps/unix/sysv/linux/generic/futimesat.c | 52 -----------------------------
sysdeps/unix/sysv/linux/utimensat.c | 8 +++--
2 files changed, 6 insertions(+), 54 deletions(-)

Upstream: sourceware.org


  • Share