Index: files/patch-bsd-user_mmap.c =================================================================== --- files/patch-bsd-user_mmap.c (nonexistent) +++ files/patch-bsd-user_mmap.c (working copy) @@ -0,0 +1,15 @@ +--- a/bsd-user/mmap.c.orig 2015-12-24 20:32:09.000000000 +0100 ++++ b/bsd-user/mmap.c 2015-12-29 15:57:47.731358000 +0100 +@@ -307,8 +307,10 @@ abi_long target_mmap(abi_ulong start, ab + } + + len = TARGET_PAGE_ALIGN(len); +- if (len == 0) +- goto the_end; ++ if (len == 0) { ++ errno = EINVAL; ++ goto fail; ++ } + real_start = start & qemu_host_page_mask; + host_offset = offset & qemu_host_page_mask; + Property changes on: files/patch-bsd-user_mmap.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property