diff --git a/man2/mprotect.2 b/man2/mprotect.2 index da08367ba..2e263af1d 100644 --- a/man2/mprotect.2 +++ b/man2/mprotect.2 @@ -207,7 +207,7 @@ main(int argc, char *argv[]) printf("Start of region: 0x%lx\\n", (long) buffer); if (mprotect(buffer + pagesize * 2, pagesize, - PROT_NONE) == \-1) + PROT_READ) == \-1) handle_error("mprotect"); for (p = buffer ; ; )