diff options
author | Timo Teräs <timo.teras@iki.fi> | 2010-06-12 13:43:29 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2010-06-12 13:43:29 +0300 |
commit | 3062d681f9052aabd4e02884e67a0fa1cf413f8b (patch) | |
tree | 13005e78d400349314753d326a18efe78d51cc70 /src/apk.c | |
parent | 43cb554c3fd94ba394b708265c5fa2225a37a9eb (diff) | |
download | apk-tools-3062d681f9052aabd4e02884e67a0fa1cf413f8b.tar.gz apk-tools-3062d681f9052aabd4e02884e67a0fa1cf413f8b.tar.bz2 apk-tools-3062d681f9052aabd4e02884e67a0fa1cf413f8b.tar.xz apk-tools-3062d681f9052aabd4e02884e67a0fa1cf413f8b.zip |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |