diff options
author | Timo Teräs <timo.teras@iki.fi> | 2021-10-25 17:14:00 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-11-03 15:37:10 +0200 |
commit | 6941aac4c6379bebe7ee0a759f4a4b6df03c3984 (patch) | |
tree | 433547a797a841c6ac23bc442c21306bdd1405cb /src/app_audit.c | |
parent | 40f08663679246edaa578d87e9f153adaad62a87 (diff) | |
download | apk-tools-6941aac4c6379bebe7ee0a759f4a4b6df03c3984.tar.gz apk-tools-6941aac4c6379bebe7ee0a759f4a4b6df03c3984.tar.bz2 apk-tools-6941aac4c6379bebe7ee0a759f4a4b6df03c3984.tar.xz apk-tools-6941aac4c6379bebe7ee0a759f4a4b6df03c3984.zip |
db, audit: support sha256-160 hashes for v3 pkg compat
Diffstat (limited to 'src/app_audit.c')
-rw-r--r-- | src/app_audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app_audit.c b/src/app_audit.c index 09d67e0..0557a0f 100644 --- a/src/app_audit.c +++ b/src/app_audit.c @@ -100,7 +100,7 @@ static int audit_file(struct audit_ctx *actx, if (apk_fileinfo_get(dirfd, name, APK_FI_NOFOLLOW | APK_FI_XATTR_CSUM(dbf->acl->xattr_csum.type ?: APK_CHECKSUM_DEFAULT) | - APK_FI_CSUM(dbf->csum.type), + APK_FI_DIGEST(apk_dbf_digest(dbf)), &fi, &db->atoms) != 0) return -EPERM; |