diff options
author | Timo Teräs <timo.teras@iki.fi> | 2010-10-08 16:09:03 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2010-10-08 16:09:03 +0300 |
commit | 6398d338c6441f3b967a2633bbc9df4709bcb258 (patch) | |
tree | 851729b8c819ad15c62e066953407c24814bad6e /src/io.c | |
parent | 19419f1a88285a0dee53bdf49201c4d3d4cbf19f (diff) | |
download | apk-tools-6398d338c6441f3b967a2633bbc9df4709bcb258.tar.gz apk-tools-6398d338c6441f3b967a2633bbc9df4709bcb258.tar.bz2 apk-tools-6398d338c6441f3b967a2633bbc9df4709bcb258.tar.xz apk-tools-6398d338c6441f3b967a2633bbc9df4709bcb258.zip |
db: fix the previous commit
id cache needs to be initialized early. and group database filename
is surprisingly 'group'.
Diffstat (limited to 'src/io.c')
-rw-r--r-- | src/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -838,7 +838,7 @@ uid_t apk_resolve_gid(struct apk_id_cache *idc, const char *groupname, uid_t def ci->genid = idc->genid; ci->gid = -1; - in = fdopen(openat(idc->root_fd, "etc/passwd", O_RDONLY|O_CLOEXEC), "r"); + in = fdopen(openat(idc->root_fd, "etc/group", O_RDONLY|O_CLOEXEC), "r"); if (in != NULL) { do { fgetgrent_r(in, &grent, buf, sizeof(buf), &grp); |