From b74233d0092c9ee6a2faee5adb375b3151bdc99c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 19 Dec 2020 18:57:47 +0100 Subject: hurd: Also turn KERN_INVALID_ADDRESS to EINVAL When e.g. mmap is passed an invalid address we would return KERN_INVALID_ADDRESS, while POSIX applications would expect EINVAL. --- hurd/hurd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hurd') diff --git a/hurd/hurd.h b/hurd/hurd.h index c6e88a63c2..5fa7be5add 100644 --- a/hurd/hurd.h +++ b/hurd/hurd.h @@ -66,6 +66,7 @@ __hurd_fail (error_t err) err = (error_t) ENOMEM; break; + case KERN_INVALID_ADDRESS: case KERN_INVALID_ARGUMENT: err = (error_t) EINVAL; break; -- cgit v1.2.3