From 50f06dbdb157fe26a83e6e5a8e8d8fa66d9f5d80 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Fri, 20 Mar 2015 08:16:20 +0100 Subject: [PATCH] evil: fix access to a file mapping object Patch from Jorge Luis Zapatta (turran), a bit modified by me @fix Signed-off-by: Cedric BAIL --- src/lib/evil/evil_mman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evil/evil_mman.c b/src/lib/evil/evil_mman.c index cecb550..8d6dcdb 100644 --- a/src/lib/evil/evil_mman.c +++ b/src/lib/evil/evil_mman.c @@ -103,7 +103,7 @@ mmap(void *addr EVIL_UNUSED, if (protect & (PAGE_EXECUTE_READWRITE | PAGE_EXECUTE_READ)) acs = FILE_MAP_EXECUTE; #endif - else if ((protect & (PAGE_READWRITE | PAGE_READONLY)) == (PAGE_READWRITE | PAGE_READONLY)) + else if (protect & (PAGE_READWRITE | PAGE_READONLY)) acs = FILE_MAP_READ; else { -- 2.7.4