diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-03-11 16:10:33 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-03-11 16:10:33 +0200 |
commit | 8d1ec4c5bc031da9e2441a63df965757d74d5c33 (patch) | |
tree | 2923c2acdb3ab857570012a9716330ba1a4ac23a /src/archive.c | |
parent | da6e455f7001def03300a398dbbc02bb03c7f4b9 (diff) | |
download | apk-tools-8d1ec4c5bc031da9e2441a63df965757d74d5c33.tar.gz apk-tools-8d1ec4c5bc031da9e2441a63df965757d74d5c33.tar.bz2 apk-tools-8d1ec4c5bc031da9e2441a63df965757d74d5c33.tar.xz apk-tools-8d1ec4c5bc031da9e2441a63df965757d74d5c33.zip |
calculate and store checksum of xattrs
ref #3027
Diffstat (limited to 'src/archive.c')
-rw-r--r-- | src/archive.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/archive.c b/src/archive.c index 47b798b..3062c43 100644 --- a/src/archive.c +++ b/src/archive.c @@ -215,7 +215,10 @@ int apk_tar_parse(struct apk_istream *is, apk_archive_entry_parser parser, teis.csum = NULL; apk_xattr_array_resize(&entry.xattrs, 0); - if (paxlen) handle_extended_header(&entry, APK_BLOB_PTR_LEN(pax.ptr, paxlen)); + if (paxlen) { + handle_extended_header(&entry, APK_BLOB_PTR_LEN(pax.ptr, paxlen)); + apk_fileinfo_hash_xattr(&entry); + } switch (buf.typeflag) { case 'L': /* GNU long name extension */ |