(fs) UnixFileAttributeViews setTimes() failing on armhf, Ubuntu noble
authorVladimir Petko <vladimir.petko@canonical.com>
Sun, 10 Aug 2025 21:44:27 +0000 (23:44 +0200)
committerMoritz Mühlenhoff <jmm@debian.org>
Sun, 10 Aug 2025 21:44:27 +0000 (23:44 +0200)
commit610c5abbe58befebdbfa43b67e8442aa00df0686
tree086d817028ae1e2327b4048c9e9a33548a84e7f0
parentf5be204afa8bd2889502513053de996d52bec45e
(fs) UnixFileAttributeViews setTimes() failing on armhf, Ubuntu noble

Origin: upstream, https://github.com/openjdk/jdk/pull/20208
Bug: https://bugs.openjdk.org/browse/JDK-8336529
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/openjdk-23/+bug/2073335
Last-Update: 2024-07-17

time_t transition in Debian/Ubuntu left 32 bit time_t symbols in glibc.
Looking up 'futimens' via dlsym returns 32 bit version of the function.
This is causing failure to set last modified time
(e.g. instead of year 2017 we get 1976 in the test).
Using the function directly correctly calls 64 bit versions.
When we lookup functions with time_t arguments through dlsym()
calls we should use 64 bit versions.
Last-Update: 2024-07-17
Gbp-Pq: Name jdk-8336529-proposed.patch
src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c