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/remove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/remove.c') diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index c2a8ad2c..2c5d98cb 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -205,7 +205,7 @@ static int can_remove_file(alpm_handle_t *handle, const alpm_file_t *file, } /* If we fail write permissions due to a read-only filesystem, abort. * Assume all other possible failures are covered somewhere else */ - if(access(filepath, W_OK) == -1) { + if(_alpm_access(handle, NULL, filepath, W_OK) == -1) { if(errno != EACCES && errno != ETXTBSY && access(filepath, F_OK) == 0) { /* only return failure if the file ACTUALLY exists and we can't write to * it - ignore "chmod -w" simple permission failures */ -- cgit v1.2.3-24-g4f1b