summaryrefslogtreecommitdiffstats
path: root/src/apk.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-06-12 13:43:29 +0300
committerTimo Teräs <timo.teras@iki.fi>2010-06-12 13:43:29 +0300
commit3062d681f9052aabd4e02884e67a0fa1cf413f8b (patch)
tree13005e78d400349314753d326a18efe78d51cc70 /src/apk.c
parent43cb554c3fd94ba394b708265c5fa2225a37a9eb (diff)
downloadapk-tools-3062d681f9052aabd4e02884e67a0fa1cf413f8b.tar.bz2
apk-tools-3062d681f9052aabd4e02884e67a0fa1cf413f8b.tar.xz
archive: honor username/groupname instead of uid/gid
Take the uid/gid from passwd and group.
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk.c b/src/apk.c
index 315fa8a..81bb950 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -244,6 +244,7 @@ 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;
@@ -365,6 +366,7 @@ 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);