diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-12-14 11:34:34 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-12-15 09:22:08 +0200 |
commit | 2a54555aa2144f56a2ba518c48830c60da78c4d4 (patch) | |
tree | 006c927c43e75fbe72d25264d38a3d0a6a92623a /lib/verify.c | |
parent | a26848218cfdefd0f8ee538a14a57c9fea4e7b2d (diff) | |
download | librpm-tizen-2a54555aa2144f56a2ba518c48830c60da78c4d4.tar.gz librpm-tizen-2a54555aa2144f56a2ba518c48830c60da78c4d4.tar.bz2 librpm-tizen-2a54555aa2144f56a2ba518c48830c60da78c4d4.zip |
Split user+group caching to separate source (again), rename
- We'll want to unify this and the similar caching done in librpmbuild,
so we need to expose these in the ABI at least, rename to get
them namespaced and use a separate source module (again) as
this is a pretty distinct functionality.
- This would really belong to librpmio but leaving here for now...
Diffstat (limited to 'lib/verify.c')
-rw-r--r-- | lib/verify.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/verify.c b/lib/verify.c index a71847fd3..3be357da3 100644 --- a/lib/verify.c +++ b/lib/verify.c @@ -21,9 +21,10 @@ #include <rpm/rpmdb.h> #include <rpm/rpmfileutil.h> -#include "lib/misc.h" /* uidToUname(), gnameToGid */ +#include "lib/misc.h" #include "lib/rpmchroot.h" #include "lib/rpmte_internal.h" /* rpmteProcess() */ +#include "lib/rpmug.h" #include "debug.h" @@ -238,14 +239,14 @@ int rpmVerifyFile(const rpmts ts, const rpmfi fi, } if (flags & RPMVERIFY_USER) { - const char * name = uidToUname(sb.st_uid); + const char * name = rpmugUname(sb.st_uid); const char * fuser = rpmfiFUser(fi); if (name == NULL || fuser == NULL || !rstreq(name, fuser)) *res |= RPMVERIFY_USER; } if (flags & RPMVERIFY_GROUP) { - const char * name = gidToGname(sb.st_gid); + const char * name = rpmugGname(sb.st_gid); const char * fgroup = rpmfiFGroup(fi); if (name == NULL || fgroup == NULL || !rstreq(name, fgroup)) *res |= RPMVERIFY_GROUP; |