summaryrefslogtreecommitdiff
path: root/libexec/httpd
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2018-11-21 17:39:19 +0000
committermrg <mrg@NetBSD.org>2018-11-21 17:39:19 +0000
commitce985a59da2a42ce517b9518f4817cf9ac8803ca (patch)
treea3f69795b8a60dda2e755e84c92417014be84310 /libexec/httpd
parente8b2a401f12c1e1520952aa8f1a66eb0d90337d7 (diff)
use MAP_SHARED for the bzremap file. avoids netbsd kernel complaining:
WARNING: defaulted mmap() share type to MAP_PRIVATE (pid 15478 command bozohttpd)
Diffstat (limited to 'libexec/httpd')
-rw-r--r--libexec/httpd/bozohttpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/httpd/bozohttpd.c b/libexec/httpd/bozohttpd.c
index 7a9d1b2f17d..a9498c38c42 100644
--- a/libexec/httpd/bozohttpd.c
+++ b/libexec/httpd/bozohttpd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: bozohttpd.c,v 1.91 2018/11/21 09:37:02 mrg Exp $ */
+/* $NetBSD: bozohttpd.c,v 1.92 2018/11/21 17:39:19 mrg Exp $ */
/* $eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $ */
@@ -1204,7 +1204,7 @@ check_mapping(bozo_httpreq_t *request)
return;
}
- fmap = mmap(NULL, st.st_size, PROT_READ, 0, mapfile, 0);
+ fmap = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, mapfile, 0);
if (fmap == NULL) {
bozowarn(httpd, "could not mmap " REMAP_FILE ", error %d",
errno);