summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-02-10 15:21:41 +0200
committerTimo Teräs <timo.teras@iki.fi>2012-02-10 15:21:41 +0200
commit29ebf435d701ff33decd6a28775f7406ca938949 (patch)
treee84766a3e9fec6f99ab753b02dfefdc71870b5c4 /src/apk_database.h
parentdd923ed06525d4f927c472be89259637916fd540 (diff)
downloadapk-tools-29ebf435d701ff33decd6a28775f7406ca938949.tar.gz
apk-tools-29ebf435d701ff33decd6a28775f7406ca938949.tar.bz2
apk-tools-29ebf435d701ff33decd6a28775f7406ca938949.tar.xz
apk-tools-29ebf435d701ff33decd6a28775f7406ca938949.zip
db: smarter handling of directory owner, group and mode
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index b7e87e9..17be61c 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -56,16 +56,18 @@ struct apk_db_file {
#define APK_DBDIRF_PROTECTED 0x01
#define APK_DBDIRF_SYMLINKS_ONLY 0x02
#define APK_DBDIRF_MODIFIED 0x04
+#define APK_DBDIRF_RECALC_MODE 0x08
struct apk_db_dir {
apk_hash_node hash_node;
unsigned long hash;
- struct hlist_head files;
struct apk_db_dir *parent;
-
unsigned short refs;
unsigned short namelen;
+ mode_t mode;
+ uid_t uid;
+ gid_t gid;
unsigned char flags;
char rooted_name[1];
char name[];