From 3aece8f0eedd703349bcd7bd6bf4b221d9f5775c Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 29 Jan 2013 13:22:42 +1000 Subject: Restore libarchive 2.8.x compatibility We still call some of these 'deprecated' methods elsewhere, so this shouldn't present a problem. When we decide 2.x support is to be dropped, we should update all of the code to not call deprecated methods. Allan: Adjusted with respect to previous patches adding libarchive compatibilty layer. Signed-off-by: Allan McRae --- src/pacman/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pacman/check.c') diff --git a/src/pacman/check.c b/src/pacman/check.c index 92ce05c9..d7fe2d66 100644 --- a/src/pacman/check.c +++ b/src/pacman/check.c @@ -90,7 +90,7 @@ static int check_file_permissions(const char *pkgname, const char *filepath, /* mode */ fsmode = st->st_mode & (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO); - if(fsmode != archive_entry_perm(entry)) { + if(fsmode != (~AE_IFMT & archive_entry_mode(entry))) { errors++; if(!config->quiet) { pm_printf(ALPM_LOG_WARNING, _("%s: %s (Permissions mismatch)\n"), -- cgit v1.2.3-70-g09d2