openbsd-ports/www/lighttpd/patches/patch-src_network_backends_h
sthen 18e7b066bb Add a lighttpd fix from upstream. From Brad.
- Disable mmap by default with mod_compress, if a user truncates a file we
are mmapping, reading the truncated area leads to SIGBUS.
2012-03-06 08:23:43 +00:00

13 lines
432 B
Plaintext

$OpenBSD: patch-src_network_backends_h,v 1.3 2012/03/06 08:23:43 sthen Exp $
--- src/network_backends.h.orig Sun Feb 26 00:14:14 2012
+++ src/network_backends.h Sun Feb 26 00:14:43 2012
@@ -31,7 +31,7 @@
# include <sys/uio.h>
#endif
-#if defined HAVE_SYS_MMAN_H && defined HAVE_MMAP
+#if defined HAVE_SYS_MMAN_H && defined HAVE_MMAP && defined ENABLE_MMAP
# define USE_MMAP
# include <sys/mman.h>
/* NetBSD 1.3.x needs it */