basic/stat-util: make mtime check stricter and use entire timestamp
authorMichal Sekletár <msekleta@redhat.com>
Thu, 5 Nov 2020 16:55:25 +0000 (17:55 +0100)
committerMichal Sekletár <msekleta@redhat.com>
Fri, 6 Nov 2020 11:28:40 +0000 (12:28 +0100)
commita59b0a9f768f6e27b25f4f1bab6de08842e78d74
treede6b6d7de678bc10e834cf643f6bc61fe8a33aa1
parentdec8e6cfb479eee3fa53195218c0eb744fde5e72
basic/stat-util: make mtime check stricter and use entire timestamp

Note that st_mtime member of struct stat is defined as follows,

 #define st_mtime st_mtim.tv_sec

Hence we omitted checking nanosecond part of the timestamp (struct
timespec) and possibly would miss modifications that happened within the
same second.
src/basic/stat-util.c