index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2013-01-29 13:22:42 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-01-29 13:37:32 +1000 |
commit | 3aece8f0eedd703349bcd7bd6bf4b221d9f5775c (patch) | |
tree | 2afa7ee74edee5d0e5ee6062f2306c95fab086df /src | |
parent | e1e4bbb79ddd23e46b8d3a01168f4eb410308d5b (diff) |
-rw-r--r-- | src/pacman/check.c | 2 |
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"), |