aboutsummaryrefslogtreecommitdiffstats
path: root/test/filters
diff options
context:
space:
mode:
authorLibravatar rusty-snake <41237666+rusty-snake@users.noreply.github.com>2020-06-11 22:21:39 +0200
committerLibravatar rusty-snake <41237666+rusty-snake@users.noreply.github.com>2020-06-11 22:21:39 +0200
commit9c138be9e87bac2d7bf6095d6921d768e94f9463 (patch)
tree2ea02d4704d3ca99fac6fe3586ae7a436b1c72bc /test/filters
parent#3462 (diff)
downloadfirejail-9c138be9e87bac2d7bf6095d6921d768e94f9463.tar.gz
firejail-9c138be9e87bac2d7bf6095d6921d768e94f9463.tar.zst
firejail-9c138be9e87bac2d7bf6095d6921d768e94f9463.zip
mmapfail.sh fix
https://github.com/hannob/mmapfail
Diffstat (limited to 'test/filters')
-rw-r--r--test/filters/memwrexe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/filters/memwrexe.c b/test/filters/memwrexe.c
index 797e7881d..e68176b42 100644
--- a/test/filters/memwrexe.c
+++ b/test/filters/memwrexe.c
@@ -65,7 +65,7 @@ int main(int argc, char **argv) {
65 } 65 }
66 66
67 void *p = mmap (0, size, PROT_READ, MAP_SHARED, fd, 0); 67 void *p = mmap (0, size, PROT_READ, MAP_SHARED, fd, 0);
68 if (!p) { 68 if (p == MAP_FAILED) {
69 fprintf(stderr, "TESTING ERROR: cannot map file for mprotect test\n"); 69 fprintf(stderr, "TESTING ERROR: cannot map file for mprotect test\n");
70 return 1; 70 return 1;
71 } 71 }