From: Michael Tremer Date: Fri, 19 Jan 2018 15:57:20 +0000 (+0100) Subject: libpakfire: Use internal access function to check if a file exists X-Git-Tag: 0.9.28~1285^2~1155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fff8c4d81f63b7d966737bd49d2f56fc1f4d62aa;p=pakfire.git libpakfire: Use internal access function to check if a file exists Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/package.c b/src/libpakfire/package.c index 2a0d55eb9..4721e77ce 100644 --- a/src/libpakfire/package.c +++ b/src/libpakfire/package.c @@ -858,7 +858,7 @@ PAKFIRE_EXPORT int pakfire_package_is_cached(PakfirePackage pkg) { char* path = pakfire_package_get_cache_path(pkg); // Check if the file is readable - int r = access(path, R_OK); + int r = pakfire_access(path, NULL, R_OK); pakfire_free(path); return r;