Re: Misleading error when attempting to run foreign executable
From:
Andrea Monaco
Subject:
Re: Misleading error when attempting to run foreign executable
Date:
Wed, 13 Oct 2021 16:03:02 +0200
> [ENOENT] A component of path or file does not name an existing file
> or path or file is an empty string.
Then ENOENT is clearly not an appropriate error in this case.
> [EINVAL] The new process image file has appropriate privileges and
> has a recognized executable binary format, but the system does not
> support execution of a file with this format.
I think the most fitting is EINVAL, as Robert said. Did someone tell
the Linux kernel people, so they can fix this? Otherwise I will.
Andrea Monaco