Collin Funk <collin.fu...@gmail.com> writes: > However, since OpenBSD's /bin/sh 'test' builtin only compares seconds, > the check fails even though it shouldn't.
FYI, this was fixed in OpenBSD 7.7 [1]: Made ksh(1) use timespeccmp() and st_mtim instead of comparing st_mtime to fix comparison of files with modification times that differ by less than a second. > I've added a patch adding a sleep before creating the dummy file, which > should give enough time for the check to work. However, I still think the patch should be applied for older OpenBSD and other older systems. Collin [1] https://www.openbsd.org/77.html