From 19419f1a88285a0dee53bdf49201c4d3d4cbf19f Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Fri, 8 Oct 2010 15:36:54 +0300 Subject: 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. --- src/apk.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/apk.c') diff --git a/src/apk.c b/src/apk.c index 4196f74..55628c1 100644 --- a/src/apk.c +++ b/src/apk.c @@ -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); -- cgit v1.2.3-70-g09d2