[Bug other/108276] libiberty unlink_if_ordinary does not handle Windows nul device correctly
himalr at proton dot me
gcc-bugzilla@gcc.gnu.org
Wed Jan 18 00:53:33 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108276
--- Comment #7 from Himal <himalr at proton dot me> ---
(In reply to niXman from comment #6)
> I think you don't understand me.
>
> with your patch after preprocessing the `unlink_if_ordinary()` will look
> like:
> ```
> int
> unlink_if_ordinary (const char *name)
> {
> if (stricmp (name, "nul") == 0)
> return 1;
>
> return 1;
> }
>
> ```
>
> don't you think it's strange?
Ah, yes. I noticed that after submitting the patch. I have already posted an
updated version
[here](https://gcc.gnu.org/pipermail/gcc-patches/2023-January/609487.html)
More information about the Gcc-bugs
mailing list