From 1c47f374434aa66fb6620199fd027b96cee446e6 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Mon, 3 Jun 2019 16:18:29 +0300 Subject: use fixed system time in test mode to have fixed test output fixes test suite regression from previous commit --- 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 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 "); -- cgit v1.2.3-70-g09d2