https://bugs.winehq.org/show_bug.cgi?id=47169
--- Comment #11 from Erich E. Hoover erich.e.hoover@gmail.com --- (In reply to TOM from comment #10)
I suspect is the patch "ntdll-Junction_Points/0017-server-Properly-handle-file-symlink-deletion. patch". After applying "0017-server-Properly-handle-file-symlink-deletion.patch" and fix applying issue, The issue occur.
But I need to fix the patch "server-File_Permissions/0002-server-Allow-to-open-files-without-any- permission-bi.patch" to apply "ntdll-Junction_Points/0017-server-Properly-handle-file-symlink-deletion. patch", I can not determine which cause this issue. I just know these two patch change cause this issue.
The attachment is the way that I fix "0002-server-Allow-to-open-files-without-any-permission-bi.patch" just revert some change that cause issue.
I hope this may help you.
Yes, I am very surprised that that patch appears to be responsible for your issue. Would you please try replacing: lstat( fd->unix_name, &st ); with: fstat( fd->unix_fd, &st ); and see if that fixes the problem for you? (this change will break some of the reparse point behavior, but it is useful to know if it fixes your issue)