]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools/depmod: use nsec granularity when checking timestamps
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 24 May 2025 15:10:11 +0000 (16:10 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 30 May 2025 14:04:02 +0000 (09:04 -0500)
commit249795046644e1be82d36e3e7f46497949b3d650
tree883d0e9c7393f52e4ea33cc15a203e5a2b84370e
parent2077cb39f2beffb15b41e73095f00a17684eca12
tools/depmod: use nsec granularity when checking timestamps

Current code uses the POSIX.1-2001 stat::st_mtime which has one second
granularity. Considering the depmod execution time may be smaller, we
should be using the POSIX.1-2008 stat::st_mtim which has nano-second
granularity instead.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/359
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
shared/util.c
shared/util.h
tools/depmod.c