You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Target version: go1.4rc2.windows-amd64
Steps to reproduce:
1. make a junction: mklink /j C:\junction C:\Windows
2. apply os.Stat() to that junction: os.Stat(`C:\junction`)
What happened?:
os.Stat() returns an error always.
What should have happened instead?
Return valid os.FileInfo without any errors.
Please provide any additional information below.
For junctions, file attribute are reported as REPARSE_POINT (ModeSymLink).
But its ReparseTag is MOUNTPOINT, not SYMLINK.
(see http://msdn.microsoft.com/en-us/library/cc232007.aspx)
It makes syscall.Readlink() failed, so os.Stat() is failed too.
The text was updated successfully, but these errors were encountered:
by KoRoN.KaoriYa:
The text was updated successfully, but these errors were encountered: