summaryrefslogtreecommitdiff
path: root/sys/i386/linux/linux_misc.c
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1997-04-28 02:53:17 +0000
committerMike Smith <msmith@FreeBSD.org>1997-04-28 02:53:17 +0000
commit28f6972b6e44425945028a08eea2f44ce2f808db (patch)
tree9ee734307e1c3315921ed23d46622e3e729e1aec /sys/i386/linux/linux_misc.c
parentf50a491f7892547e8db3dbf9498cebdd595c8e00 (diff)
Notes
Diffstat (limited to 'sys/i386/linux/linux_misc.c')
-rw-r--r--sys/i386/linux/linux_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/linux/linux_misc.c b/sys/i386/linux/linux_misc.c
index 9f88a75197d8..fc8bae9e3781 100644
--- a/sys/i386/linux/linux_misc.c
+++ b/sys/i386/linux/linux_misc.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_misc.c,v 1.26 1997/03/24 11:24:30 bde Exp $
+ * $Id: linux_misc.c,v 1.27 1997/04/01 08:39:06 bde Exp $
*/
#include <sys/param.h>
@@ -611,7 +611,7 @@ linux_mmap(struct proc *p, struct linux_mmap_args *args, int *retval)
bsd_args.flags |= MAP_ANON;
bsd_args.addr = linux_args.addr;
bsd_args.len = linux_args.len;
- bsd_args.prot = linux_args.prot;
+ bsd_args.prot = linux_args.prot | PROT_READ; /* always required */
bsd_args.fd = linux_args.fd;
bsd_args.pos = linux_args.pos;
bsd_args.pad = 0;