Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/remove.c
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-07-06 18:26:56 +0200
committerDan McGee <dan@archlinux.org>2011-07-18 10:44:28 -0500
commitdad96ccce2eea8b171cd2d14ec20b8185f0009a8 (patch)
tree70f8c007e16370b2fef1f97fc5a6ccec6158da06 /lib/libalpm/remove.c
parent89c070b263a9e1e4e0734b25c8bc33367a34e504 (diff)
replace access() calls for debug info where applicable
Signed-off-by: Florian Pritz <bluewind@xinu.at> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/remove.c')
-rw-r--r--lib/libalpm/remove.c2
1 files changed, 1 insertions, 1 deletions
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 */