From 45d313c51cbae20bce0789db86ba82ff79c9b202 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Tue, 4 Feb 2020 10:31:10 +0200 Subject: remove apk_time() as it is causing problems with shared objects Instead, to make sure test mode produces same output, redefine time() for the test mode binary. Reverts parts of 0b82bcc53e60. --- src/archive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/archive.c') diff --git a/src/archive.c b/src/archive.c index 24676b1..226bc23 100644 --- a/src/archive.c +++ b/src/archive.c @@ -293,7 +293,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 ?: apk_time()); + PUT_OCTAL(buf.mtime, ae->mtime ?: time(NULL)); /* Checksum */ strcpy(buf.magic, "ustar "); -- cgit v1.2.3-60-g2f50