https://bugs.winehq.org/show_bug.cgi?id=53093
--- Comment #9 from Louis Lenders xerox.xerox2000x@gmail.com --- Hi Erich, not sure if you have time to look into this (again) but I found that there's still some commands that doesn't work for CreateSymbolicLinkW (tested in Powershell Core):
New-Item -Type SymbolicLink -Path 'C:\aa' -Value 'C:\Program Files\Common Files\Microsoft Shared'
This one claims to have created the link successfully, but I cannot cd into it, and 'ls c:\aa' says: "Get-ChildItem: Could not find a part of the path 'C:\aa'.'"
However it seems that when the targetname is shorter it succeeds for me:
New-Item -Type SymbolicLink -Path 'C:\bb' -Value 'C:\Program Files\Common Files'
Now: 'ls C:\bb' gives correctly
Directory: C:\bb
Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 9/21/2023 10:13 PM Microsoft Shared d---- 9/21/2023 10:13 PM System
for the unsuccessfull creation I can see in the .REPARSEPOINT:
$ ls -al total 12 drwxr-xr-x 2 louis louis 4096 Sep 22 14:59 . drwxr-xr-x 3 louis louis 4096 Sep 22 14:59 .. lrwxrwxrwx 1 louis louis 25 Sep 22 14:59 '${WINEPREFIX}' -> /home/louis/ramdisk/.wine lrwxrwxrwx 1 louis louis 129 Sep 22 14:59 0 -> 'AHI/AbwBzAG8AZgB0ACAAUwBoAGEAcgBlAGQAXAAAAA/${WINEPREFIX}${WINEPREFIX}/dosdevices/c:/Program Files/Common Files/Microsoft Shared/'
It looks like something got messed up or so????