From 8d1ec4c5bc031da9e2441a63df965757d74d5c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Wed, 11 Mar 2015 16:10:33 +0200 Subject: calculate and store checksum of xattrs ref #3027 --- src/apk_io.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/apk_io.h') diff --git a/src/apk_io.h b/src/apk_io.h index 59a5d70902..ee81851da6 100644 --- a/src/apk_io.h +++ b/src/apk_io.h @@ -45,6 +45,7 @@ struct apk_file_info { time_t mtime; dev_t device; struct apk_checksum csum; + struct apk_checksum xattr_csum; struct apk_xattr_array *xattrs; }; @@ -150,6 +151,7 @@ int apk_blob_to_file(int atfd, const char *file, apk_blob_t b, unsigned int flag #define APK_FI_NOFOLLOW 0x80000000 int apk_fileinfo_get(int atfd, const char *filename, unsigned int flags, struct apk_file_info *fi); +void apk_fileinfo_hash_xattr(struct apk_file_info *fi); void apk_fileinfo_free(struct apk_file_info *fi); typedef int apk_dir_file_cb(void *ctx, int dirfd, const char *entry); -- cgit v1.2.3