From 9cbf0349b84fb19c6dddbe4f7a3246d4c949ad09 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 3 Dec 2007 16:33:18 +0200 Subject: Use regular POSIX functions instead of "RPC" clones - we only care about local files --- rpmdb/rpmdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rpmdb') 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)); } -- cgit v1.2.3