summaryrefslogtreecommitdiff
path: root/rpmdb
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-03 16:33:18 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-03 16:33:18 +0200
commit9cbf0349b84fb19c6dddbe4f7a3246d4c949ad09 (patch)
tree8eedf8632f760089f94c07a28fd6ea363ed3a22a /rpmdb
parentfb90b8b4eb46c4008326e07b4866f4bf0875df83 (diff)
downloadlibrpm-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 'rpmdb')
-rw-r--r--rpmdb/rpmdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c
index f863685e5..052f2e171 100644
--- a/rpmdb/rpmdb.c
+++ b/rpmdb/rpmdb.c
@@ -3237,7 +3237,7 @@ static int rpmioFileExists(const char * urlfn)
case URL_IS_HKP: /* XXX WRONG WRONG WRONG */
case URL_IS_PATH:
case URL_IS_UNKNOWN:
- if (Stat(fn, &buf)) {
+ if (stat(fn, &buf)) {
switch(errno) {
case ENOENT:
case EINVAL:
@@ -3474,7 +3474,7 @@ int rpmdbRebuild(const char * prefix, rpmts ts,
}
rpmlog(RPMLOG_DEBUG, _("creating directory %s\n"), newrootdbpath);
- if (Mkdir(newrootdbpath, 0755)) {
+ if (mkdir(newrootdbpath, 0755)) {
rpmlog(RPMLOG_ERR, _("creating directory %s: %s\n"),
newrootdbpath, strerror(errno));
rc = 1;
@@ -3595,7 +3595,7 @@ int rpmdbRebuild(const char * prefix, rpmts ts,
exit:
if (removedir && !(rc == 0 && nocleanup)) {
rpmlog(RPMLOG_DEBUG, _("removing directory %s\n"), newrootdbpath);
- if (Rmdir(newrootdbpath))
+ if (rmdir(newrootdbpath))
rpmlog(RPMLOG_ERR, _("failed to remove directory %s: %s\n"),
newrootdbpath, strerror(errno));
}