summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-02-10 23:08:10 +0200
committerTimo Teräs <timo.teras@iki.fi>2012-02-10 23:08:10 +0200
commit087c587e57b057cb03791b778c1a25dc07b8a243 (patch)
treeab9bf72d7842ecb855c5d0acf50ea9d0f6907d95 /src
parent9ac8d8710229315b2e481fb99cec3ebc1852ea4f (diff)
downloadapk-tools-087c587e57b057cb03791b778c1a25dc07b8a243.tar.gz
apk-tools-087c587e57b057cb03791b778c1a25dc07b8a243.tar.bz2
apk-tools-087c587e57b057cb03791b778c1a25dc07b8a243.tar.xz
apk-tools-087c587e57b057cb03791b778c1a25dc07b8a243.zip
db: allow directory to have sticky bit, and suid/sgid bits set
Diffstat (limited to 'src')
-rw-r--r--src/database.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c
index ec92197..75b58a6 100644
--- a/src/database.c
+++ b/src/database.c
@@ -2112,7 +2112,7 @@ static int apk_db_install_archive_entry(void *_ctx,
&ctx->diri_node);
ctx->file_diri_node = hlist_tail_ptr(&diri->owned_files);
- apk_db_diri_set(diri, ae->mode & 0777, ae->uid, ae->gid);
+ apk_db_diri_set(diri, ae->mode, ae->uid, ae->gid);
apk_db_dir_mkdir(db, diri->dir);
}
ctx->installed_size += ctx->current_file_size;