diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index c2ff17cdd62..e8e6db8b4d5 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_misc.c,v 1.32 2000/09/07 17:52:24 ericj Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.33 2000/09/10 07:04:20 jasoni Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /* @@ -625,7 +625,7 @@ linux_sys_mmap(p, v, retval) lmap.lm_prot |= VM_PROT_READ; SCARG(&cma,prot) = lmap.lm_prot; SCARG(&cma,flags) = flags; - SCARG(&cma,fd) = lmap.lm_fd; + SCARG(&cma,fd) = flags & MAP_ANON ? -1 : lmap.lm_fd; SCARG(&cma,pad) = 0; SCARG(&cma,pos) = lmap.lm_pos; |