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

--- Comment #26 from Bill Zissimopoulos <gnu.org at billz dot fastmail.fm> ---
(In reply to niXman from comment #25)
> updated patch there:
> https://gcc.gnu.org/pipermail/gcc-patches/2023-January/610029.html

A couple of things:

1. If the GetFinalPathNameByHandle method fails, I would always fall back to
the GetFullPathName method (which has fewer failure modes).
GetFinalPathNameByHandle can fail for many reasons: for example, if the drive
X: is a local drive created by SUBST/DefineDosDevice or for special files like
NUL (as you have discovered).

2. I would not do anything particular for special files like NUL. See my above
comment: if GetFinalPathNameByHandle fails fall back to GetFullPathName.

Reply via email to