summaryrefslogtreecommitdiff
path: root/src/io_archive.c
diff options
context:
space:
mode:
authorkpcyrd <git@rxv.cc>2021-07-24 18:13:49 +0200
committerTimo Teräs <timo.teras@iki.fi>2021-07-25 09:04:17 +0300
commit9e54fcf4be0d62e13e5a6fed481a1c08cd59c871 (patch)
treeae1b79d89f6d48f3b898a2baba768c6d44fe2cfb /src/io_archive.c
parentc13969849d6d072c22ae4a2eddb40c0974b70a31 (diff)
downloadapk-tools-9e54fcf4be0d62e13e5a6fed481a1c08cd59c871.tar.gz
apk-tools-9e54fcf4be0d62e13e5a6fed481a1c08cd59c871.tar.bz2
apk-tools-9e54fcf4be0d62e13e5a6fed481a1c08cd59c871.tar.xz
apk-tools-9e54fcf4be0d62e13e5a6fed481a1c08cd59c871.zip
io_archive: Use SOURCE_DATE_EPOCH for meta files instead of current time
[TT: minor stylistic changes]
Diffstat (limited to 'src/io_archive.c')
-rw-r--r--src/io_archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io_archive.c b/src/io_archive.c
index 1022e8f..aa446e9 100644
--- a/src/io_archive.c
+++ b/src/io_archive.c
@@ -292,7 +292,7 @@ int apk_tar_write_entry(struct apk_ostream *os, const struct apk_file_info *ae,
PUT_OCTAL(buf.uid, ae->uid);
PUT_OCTAL(buf.gid, ae->gid);
PUT_OCTAL(buf.mode, ae->mode & 07777);
- PUT_OCTAL(buf.mtime, ae->mtime ?: time(NULL));
+ PUT_OCTAL(buf.mtime, ae->mtime ?: apk_get_build_time());
/* Checksum */
strcpy(buf.magic, "ustar ");