summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Biernacki <kaktus@FreeBSD.org>2020-11-26 09:07:45 +0000
committerPawel Biernacki <kaktus@FreeBSD.org>2020-11-26 09:07:45 +0000
commit569da02b0cab69aab0707d9791125d7b6c08a86c (patch)
tree8cb4543ec5e58dece690b40211af7433f9af0387
parentc0c234543263c95cb79d46cfb1dfae2d91d335e4 (diff)
downloadsrc-test2-569da02b0cab69aab0707d9791125d7b6c08a86c.tar.gz
src-test2-569da02b0cab69aab0707d9791125d7b6c08a86c.zip
Notes
-rw-r--r--lib/libsysdecode/flags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libsysdecode/flags.c b/lib/libsysdecode/flags.c
index 604303a0cbd4..1eb48858fd88 100644
--- a/lib/libsysdecode/flags.c
+++ b/lib/libsysdecode/flags.c
@@ -662,7 +662,7 @@ sysdecode_mmap_prot(FILE *fp, int prot, int *rem)
printed = false;
protm = PROT_MAX_EXTRACT(prot);
- prot = PROT_EXTRACT(prot);
+ prot &= ~PROT_MAX(protm);
if (protm != 0) {
fputs("PROT_MAX(", fp);
printed = print_mask_int(fp, mmapprot, protm, rem);