diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-07-06 18:26:56 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-07-18 17:44:28 +0200 |
commit | dad96ccce2eea8b171cd2d14ec20b8185f0009a8 (patch) | |
tree | 70f8c007e16370b2fef1f97fc5a6ccec6158da06 /lib/libalpm/remove.c | |
parent | 89c070b263a9e1e4e0734b25c8bc33367a34e504 (diff) | |
download | pacman-dad96ccce2eea8b171cd2d14ec20b8185f0009a8.tar.gz pacman-dad96ccce2eea8b171cd2d14ec20b8185f0009a8.tar.xz |
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.c | 2 |
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 */ |