From fff8c4d81f63b7d966737bd49d2f56fc1f4d62aa Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 19 Jan 2018 16:57:20 +0100 Subject: [PATCH] libpakfire: Use internal access function to check if a file exists Signed-off-by: Michael Tremer --- src/libpakfire/package.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5