summaryrefslogtreecommitdiff
path: root/src/archive.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2019-06-03 16:18:29 +0300
committerTimo Teräs <timo.teras@iki.fi>2019-06-03 16:19:17 +0300
commit1c47f374434aa66fb6620199fd027b96cee446e6 (patch)
tree3d0c4acc813efd5fd40a1b9d83d1be3e96037856 /src/archive.c
parent37fbafcd928c466c82c892a7868d686d710e5d07 (diff)
downloadapk-tools-1c47f374434aa66fb6620199fd027b96cee446e6.tar.gz
apk-tools-1c47f374434aa66fb6620199fd027b96cee446e6.tar.bz2
apk-tools-1c47f374434aa66fb6620199fd027b96cee446e6.tar.xz
apk-tools-1c47f374434aa66fb6620199fd027b96cee446e6.zip
use fixed system time in test mode to have fixed test output
fixes test suite regression from previous commit
Diffstat (limited to 'src/archive.c')
-rw-r--r--src/archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/archive.c b/src/archive.c
index 724410c..86f2e3d 100644
--- a/src/archive.c
+++ b/src/archive.c
@@ -396,7 +396,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_time());
/* Checksum */
strcpy(buf.magic, "ustar ");