diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-03 16:33:18 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-03 16:33:18 +0200 |
commit | 9cbf0349b84fb19c6dddbe4f7a3246d4c949ad09 (patch) | |
tree | 8eedf8632f760089f94c07a28fd6ea363ed3a22a /lib/verify.c | |
parent | fb90b8b4eb46c4008326e07b4866f4bf0875df83 (diff) | |
download | librpm-tizen-9cbf0349b84fb19c6dddbe4f7a3246d4c949ad09.tar.gz librpm-tizen-9cbf0349b84fb19c6dddbe4f7a3246d4c949ad09.tar.bz2 librpm-tizen-9cbf0349b84fb19c6dddbe4f7a3246d4c949ad09.zip |
Use regular POSIX functions instead of "RPC" clones
- we only care about local files
Diffstat (limited to 'lib/verify.c')
-rw-r--r-- | lib/verify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/verify.c b/lib/verify.c index 60af24a4c..d6f641cea 100644 --- a/lib/verify.c +++ b/lib/verify.c @@ -66,7 +66,7 @@ int rpmVerifyFile(const rpmts ts, const rpmfi fi, break; } - if (fn == NULL || Lstat(fn, &sb) != 0) { + if (fn == NULL || lstat(fn, &sb) != 0) { *res |= RPMVERIFY_LSTATFAIL; return 1; } @@ -129,7 +129,7 @@ int rpmVerifyFile(const rpmts ts, const rpmfi fi, char linkto[1024+1]; int size = 0; - if ((size = Readlink(fn, linkto, sizeof(linkto)-1)) == -1) + if ((size = readlink(fn, linkto, sizeof(linkto)-1)) == -1) *res |= (RPMVERIFY_READLINKFAIL|RPMVERIFY_LINKTO); else { const char * flink = rpmfiFLink(fi); |