Re: [dev] [Bug][sbase] make install borked since commit ddde8021

From: Markus Wichmann <nullplan_AT_gmx.net>
Date: Sun, 29 Oct 2023 20:49:09 +0100

Am Sun, Oct 29, 2023 at 06:00:18PM +0100 schrieb Страхиња Радић:
> mkdir returning EISDIR is definitely not a part of POSIX.[1]
>
> [1]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdir.html#tag_16_325_05

That's where you're wrong. Any function can fail for any reason unless
POSIX specifically states "this function shall not fail with...". Only
if the error conditions listed in the definition of the function apply,
they have to return those error codes. Or as XSI chapter 2.3 puts it:

| Implementations may support additional errors not included in this list,
| may generate errors included in this list under circumstances other than
| those described here, or may contain extensions or limitations that
| prevent some errors from occurring.
|
| The ERRORS section on each reference page specifies which error
| conditions shall be detected by all implementations (``shall fail") and
| which may be optionally detected by an implementation (``may fail"). If
| no error condition is detected, the action requested shall be
| successful. If an error condition is detected, the action requested may
| have been partially performed, unless otherwise stated.

For example, execve() can fail with ENOENT even though the file exists.
On Linux this happens when the file names an interpreter that does not
exist.

Ciao,
Markus
Received on Sun Oct 29 2023 - 20:49:09 CET

This archive was generated by hypermail 2.3.0 : Sun Oct 29 2023 - 22:00:09 CET