From dad96ccce2eea8b171cd2d14ec20b8185f0009a8 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 6 Jul 2011 18:26:56 +0200 Subject: replace access() calls for debug info where applicable Signed-off-by: Florian Pritz Signed-off-by: Dan McGee --- lib/libalpm/trans.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libalpm/trans.c') diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 6cea9b7c..1bab830d 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -288,8 +288,7 @@ int _alpm_runscriptlet(alpm_handle_t *handle, const char *installfn, int clean_tmpdir = 0; int retval = 0; - if(access(installfn, R_OK)) { - /* not found */ + if(_alpm_access(handle, NULL, installfn, R_OK) != 0) { _alpm_log(handle, ALPM_LOG_DEBUG, "scriptlet '%s' not found\n", installfn); return 0; } -- cgit v1.2.3-24-g4f1b