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_io.h | |
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_io.h')
-rw-r--r-- | src/apk_io.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/apk_io.h b/src/apk_io.h index 68f9925..3a3abff 100644 --- a/src/apk_io.h +++ b/src/apk_io.h @@ -95,4 +95,10 @@ int apk_file_get_info(int atfd, const char *filename, unsigned int flags, int apk_url_download(const char *url, int atfd, const char *file); const char *apk_url_local_file(const char *url); +void apk_id_cache_init(void); +void apk_id_cache_free(void); +void apk_id_cache_reset(void); +uid_t apk_resolve_uid(const char *username, uid_t default_uid); +uid_t apk_resolve_gid(const char *groupname, uid_t default_gid); + #endif |