diff options
Diffstat (limited to 'src/archive.c')
-rw-r--r-- | src/archive.c | 2 |
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 "); |