diff options
| author | Timo Teräs <timo.teras@iki.fi> | 2018-04-05 09:57:15 +0300 |
|---|---|---|
| committer | Timo Teräs <timo.teras@iki.fi> | 2018-04-05 09:57:17 +0300 |
| commit | 258519b1cd32e285060fa4758c123b55ebfe3ef3 (patch) | |
| tree | 388783ac7d90c5c494735b76492a5e0fd0e264e5 /src/commit.c | |
| parent | 0dcbd933c8d3d305395a99b7b1690a187ce5ec8c (diff) | |
| download | apk-tools-258519b1cd32e285060fa4758c123b55ebfe3ef3.tar.bz2 apk-tools-258519b1cd32e285060fa4758c123b55ebfe3ef3.tar.xz | |
db: fix refreshing index if time is zero
During netboot on systems without RTC, time() will be near zero,
and the index fill not exist. Thus the plain test of st.st_mtime
against system time failed. Verify that fstatat() succeeds.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions
