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

2023-01-17 Thread himalr at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108276 --- Comment #7 from Himal --- (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) > { >

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

2023-01-16 Thread himalr at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108276 --- Comment #5 from Himal --- (In reply to niXman from comment #4) > (In reply to niXman from comment #2) > > > I don't think the patch is correct because for WIN32 platform `unlink()` > > will never be called even for non-"nul" files. > > mor

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

2023-01-03 Thread himalr at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108276 Bug ID: 108276 Summary: libiberty unlink_if_ordinary does not handle Windows nul device correctly Product: gcc Version: unknown Status: UNCONFIRMED Severity: n