Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/check.c2
1 files changed, 1 insertions, 1 deletions
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"),