Skip to content

Use futimens() on FreeBSD

Adriaan de Groot requested to merge work/adridg/freebsd-stat into master

All of the supported FreeBSD versions have futimens(), so use that in the code path as well.

The non-ns code path in file_unix.cpp function FileProtocol::copy() loses the microseconds because those are set explicitly to 0, and the autotests will fail.

While here, add a test that checks for sub-second accuracy of stat() and the Qt counterparts (all of which pass on FreeBSD, which led to checking the code paths in copy() instead.

Merge request reports

Loading