]> git.ipfire.org Git - people/ms/gcc.git/commit
libiberty: fix lrealpath on Windows NTFS symlinks
authorniXman <i.nixman@autistici.org>
Sat, 11 Feb 2023 06:18:10 +0000 (06:18 +0000)
committerJonathan Yong <10walls@gmail.com>
Sat, 11 Feb 2023 06:29:43 +0000 (06:29 +0000)
commite2bb55ec3b70cf45088bb73ba9ca990129328d60
treec5ca0b21fca896fa2e7366899d0ac91c3d7bfb92
parentd7a47ed17ad9cddb7b8f2184204814e7554ffc2f
libiberty: fix lrealpath on Windows NTFS symlinks

gcc computes the wrong prefix if invoked through an NTFS
symlink. Try to resolve it if possible.

PR/108350

libiberty/ChangeLog:

* lrealpath.c (lrealpath): try to resolve symlink and
use UNC paths where applicable.

Signed-off-by: Jonathan Yong <10walls@gmail.com>
libiberty/lrealpath.c