diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-02-04 10:31:10 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-02-04 10:31:10 +0200 |
commit | 45d313c51cbae20bce0789db86ba82ff79c9b202 (patch) | |
tree | d144b6462d34c1ceeaf26fbc87902d515e346e0b /src/add.c | |
parent | 8fc403c582a725b667d0211f9ccd8a217d25c2fc (diff) | |
download | apk-tools-45d313c51cbae20bce0789db86ba82ff79c9b202.tar.gz apk-tools-45d313c51cbae20bce0789db86ba82ff79c9b202.tar.bz2 apk-tools-45d313c51cbae20bce0789db86ba82ff79c9b202.tar.xz apk-tools-45d313c51cbae20bce0789db86ba82ff79c9b202.zip |
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.
Diffstat (limited to 'src/add.c')
-rw-r--r-- | src/add.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -81,7 +81,7 @@ static struct apk_package *create_virtual_package(struct apk_database *db, struc struct apk_package *virtpkg; struct tm tm; EVP_MD_CTX *mdctx; - time_t now = apk_time(); + time_t now = time(NULL); pid_t pid = getpid(); gmtime_r(&now, &tm); |