summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-02-14 15:51:12 +0200
committerTimo Teräs <timo.teras@iki.fi>2012-02-14 15:51:26 +0200
commit97bd260bfd27337ff348180ecc51a8eb798a2651 (patch)
tree5bdf2eb09cc4fcef6b9455264371e05deae7ec78 /src/apk_database.h
parent087c587e57b057cb03791b778c1a25dc07b8a243 (diff)
downloadapk-tools-97bd260bfd27337ff348180ecc51a8eb798a2651.tar.gz
apk-tools-97bd260bfd27337ff348180ecc51a8eb798a2651.tar.bz2
apk-tools-97bd260bfd27337ff348180ecc51a8eb798a2651.tar.xz
apk-tools-97bd260bfd27337ff348180ecc51a8eb798a2651.zip
db: record file uid/gid/mode in installed db
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 17be61c..690b757 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -48,6 +48,10 @@ struct apk_db_file {
struct hlist_node diri_files_list;
struct apk_db_dir_instance *diri;
+ mode_t mode;
+ uid_t uid;
+ gid_t gid;
+
unsigned short namelen;
struct apk_checksum csum;
char name[];
@@ -60,14 +64,14 @@ struct apk_db_file {
struct apk_db_dir {
apk_hash_node hash_node;
-
unsigned long hash;
struct apk_db_dir *parent;
- unsigned short refs;
- unsigned short namelen;
mode_t mode;
uid_t uid;
gid_t gid;
+
+ unsigned short refs;
+ unsigned short namelen;
unsigned char flags;
char rooted_name[1];
char name[];