[Bug other/108276] libiberty unlink_if_ordinary does not handle Windows nul device correctly

i.nixman at autistici dot org gcc-bugzilla@gcc.gnu.org
Tue Jan 17 07:06:17 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108276

--- Comment #6 from niXman <i.nixman at autistici dot org> ---
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?


More information about the Gcc-bugs mailing list