bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] findprog-in: Set errno to indicate why NULL was returned.


From: Eli Zaretskii
Subject: Re: [PATCH] findprog-in: Set errno to indicate why NULL was returned.
Date: Mon, 16 Sep 2019 18:18:11 +0300

> From: Bruno Haible <address@hidden>
> Cc: Paul Smith <address@hidden>
> Date: Sun, 15 Sep 2019 19:58:56 +0200
> 
> +   - Otherwise, it sets errno and returns NULL.
> +     Specific errno values include:
> +       - ENOENT: means that the program's file was not found.
> +       - EACCESS: means that the program's file was found but lacks the
> +         execute permissions.

The value of EACCES (not EACCESS!) on MS-Windows frequently means the
file cannot be accessed for a reason that has nothing to do with
execute permissions.  It could be, for example, that some intermediate
directory in the full file name doesn't exist or is otherwise
inaccessible.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]