https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108350
--- Comment #3 from niXman <i.nixman at autistici dot org> --- (In reply to Bill Zissimopoulos from comment #2) > (In reply to niXman from comment #1) > > > The most straightforward fix is to change `lrealpath` to use > > > `GetFinalPathNameByHandle` instead of `GetFullPathName`. > > > > thanks for the investigation! > > will do it now. > > Thank you! > > FYI `GetFinalPathNameByHandle` is known to fail on drives that are created > via `DefineDosDevice` (e.g. via the SUBST command). So I recommend using > `GetFullPathName` as a fallback if you find that `GetFinalPathNameByHandle` > fails. got it, thanks!