aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2014-10-18 20:20:42 +0800
committerjhb <jhb@FreeBSD.org>2014-10-18 20:20:42 +0800
commite8ebd9dc531b489ce35a70cdf34e2ca3a73b7c8e (patch)
tree75b44b9298bfa34f3123fa4b2064042302608491 /security
parent7a11983187598adbbcc47f1e58f14eb473db899b (diff)
downloadfreebsd-ports-graphics-e8ebd9dc531b489ce35a70cdf34e2ca3a73b7c8e.tar.gz
freebsd-ports-graphics-e8ebd9dc531b489ce35a70cdf34e2ca3a73b7c8e.tar.zst
freebsd-ports-graphics-e8ebd9dc531b489ce35a70cdf34e2ca3a73b7c8e.zip
The MAP_NORESERVE flag to mmap() has never been implemented in FreeBSD and
is being removed. No portrev bump needed since the kernel will continue to accept this flag for old binaries even after support for it in new binaries is removed. PR: 193961 Approved by: portmgr (antoine)
Diffstat (limited to 'security')
-rw-r--r--security/binwalk/files/patch-common.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/binwalk/files/patch-common.c b/security/binwalk/files/patch-common.c
new file mode 100644
index 00000000000..6bad5bddb41
--- /dev/null
+++ b/security/binwalk/files/patch-common.c
@@ -0,0 +1,11 @@
+--- common.c.orig 2014-10-08 12:07:33.000000000 -0400
++++ common.c 2014-10-08 12:07:45.000000000 -0400
+@@ -109,7 +109,7 @@
+
+ if(file_size > 0)
+ {
+- buffer = mmap(NULL, file_size, PROT_READ, (MAP_SHARED | MAP_NORESERVE), fd, 0);
++ buffer = mmap(NULL, file_size, PROT_READ, MAP_SHARED, fd, 0);
+ if(buffer == MAP_FAILED)
+ {
+ perror("mmap");