mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
src/cmd.c: Fixed bug was caused by mmap behaviour when length = 0
Here is quote from man(3) mmap: SUSv3 specifies that mmap() should fail if length is 0. However, in kernels before 2.6.12, mmap() succeeded in this case: no mapping was created and the call returned addr. Since kernel 2.6.12, mmap() fails with the error EINVAL for this case. Thanks to snizovtsev
This commit is contained in:
parent
25d5ed8c6a
commit
8c441fdd12
Loading…
Reference in New Issue
Block a user