https://bugs.winehq.org/show_bug.cgi?id=47160
--- Comment #25 from TOM l12436@yahoo.com.tw --- (In reply to Erich E. Hoover from comment #24)
Ok, this is rather complicated - but can be simplified down to two cases:
- some functions return the characteristics of the target (GetFileSize)
- some functions return the characteristics of the link
(GetFileAttributesEx)
In my attempt to fix case #2, I inadvertently broke case #1 because I did not realize that GetFileSize was a situation of case #1.
So, if you would not mind - please revert ntdll-Junction_Points/0015-ntdll-Correctly-report-fd-based-file-info-for- symlin.patch and see if this fixes your problem. If it does then I'll get together an updated version of the patches with more tests for this edge case.
YEP, It work with 0015-ntdll-Correctly-report-fd-based-file-info-for-symlin.patch not applied, but I need to fix 0003-ntdll-Implement-storing-DOS-attributes-in-NtSetInfor.patch to make sure wine-staging apply successfully.