execve()ing non-existent command returns EPERM instead of ENOENT in Koji

Petr Pisar ppisar at redhat.com
Thu May 26 13:39:21 UTC 2011


On 2011-05-26, Andreas Schwab <schwab at redhat.com> wrote:
> Petr Pisar <ppisar at redhat.com> writes:
>
>> Reviewer of my package found the package does pass tests in Koji
>> (dist-f16). I found the reason:
>>
>> A test executes non-existent command and expects ENOENT.
>
> That's a bug in the test.  EACCES is a valid error if a PATH element is
> inaccessible.
>
You are right. Returning EACCES if command does not exist in any
accesible directory and other directories have insufficient permissions
makes sense.

-- Petr



More information about the devel mailing list