On Aug 11 2026, Torbjorn SVENSSON wrote:

> In _swistat, the following statements are of interrest:
>
>   /* Always assume a character device,
>      with 1024 byte blocks. */
>   st->st_mode |= S_IFCHR;
>   st->st_blksize = 1024;
>
> This, together with
>
>   st->st_mode |= S_IFREG | S_IREAD;
>
> from _stat will set the bits in a way that makes libstdc++ think that the
> checked path is a symlink, even if the checked path actually a regular
> directory.

That looks like a bug that needs to be fixed in newlib.

-- 
Andreas Schwab, SUSE Labs, [email protected]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply via email to