Choose better deterministic timestamp for zip

This commit is contained in:
Justine Tunney 2022-03-16 16:59:45 -07:00
parent b45d50b690
commit bf62140377
7 changed files with 32 additions and 30 deletions

View file

@ -145,6 +145,8 @@ void elfwriter_zip(struct ElfWriter *elf, const char *symbol, const char *name,
size_t lfilehdrsize, uncompsize, compsize, commentsize;
uint16_t method, gflags, mtime, mdate, iattrs, dosmode;
CHECK_NE(0, mtim.tv_sec);
gflags = 0;
iattrs = 0;
compsize = size;