diff options
author | Timo Teräs <timo.teras@iki.fi> | 2010-10-08 15:36:54 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2010-10-08 15:36:54 +0300 |
commit | 19419f1a88285a0dee53bdf49201c4d3d4cbf19f (patch) | |
tree | f8221675060919509e2bef32d2fb5b68df05cddd /src/apk.c | |
parent | a31948ae2640986b8a012b20e2a188ce0fea2cc2 (diff) | |
download | apk-tools-19419f1a88285a0dee53bdf49201c4d3d4cbf19f.tar.gz apk-tools-19419f1a88285a0dee53bdf49201c4d3d4cbf19f.tar.bz2 apk-tools-19419f1a88285a0dee53bdf49201c4d3d4cbf19f.tar.xz apk-tools-19419f1a88285a0dee53bdf49201c4d3d4cbf19f.zip |
io, db: id cache should be specific to database root, not system root
Otherwise we end up using wrong uid/gid mappings when doing install
to alternate system root. Fixes #434.
Diffstat (limited to 'src/apk.c')
-rw-r--r-- | src/apk.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -248,7 +248,6 @@ int main(int argc, char **argv) memset(&dbopts, 0, sizeof(dbopts)); list_init(&dbopts.repository_list); umask(0); - apk_id_cache_init(); applet = deduce_applet(argc, argv); num_options = ARRAY_SIZE(generic_options) + 1; @@ -370,7 +369,6 @@ int main(int argc, char **argv) r = applet->main(ctx, &db, argc, argv); apk_db_close(&db); - apk_id_cache_free(); if (r == -EINVAL) return usage(applet); |