This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] linux: make getcwd(3) fail if it cannot obtain an absolute path [BZ #22679]
On Sun, Jan 7, 2018 at 11:07 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> On Jan 07 2018, Zack Weinberg <zackw@panix.com> wrote:
>
>> http://pubs.opengroup.org/onlinepubs/9699919799/functions/getcwd.html
>> does not license getcwd to fail with ENOENT.
>
> That's not true. It doesn't specify any condition for ENOENT, thus we
> can use it for our purpose.
I thought the ERRORS sections were meant to be exhaustive - no other
errors are allowed.
zw