https://bugs.winehq.org/show_bug.cgi?id=47169
--- Comment #21 from TOM l12436@yahoo.com.tw --- (In reply to Erich E. Hoover from comment #20)
(In reply to TOM from comment #18)
Created attachment 64531 [details] stdout of lstat and fstat
I saw that lstat only test Data directory and nothing else. fstat still load the esp under the Data. ...
There is a lot in these logs and I do not know what to look for (there are lots of Data directory printouts). Could you give me a line number or something to search for so that I can see exactly what you mean? I am very surprised that you get nothing when you compare the return value to -1 to restrict the fprintf to failed calls.
I am also surprised that it did not return failed.
Around 29753 in stdout-lstat and stdout-fstat which is get the state of "/swap/wine/skyrim/dosdevices/d:/The.Elder.Scrolls.V.Skyrim/Data". You will start saw the difference on lstat and fstat. With fstat(), Skyrim will also load the esm and esp under the Data. For some reason, lstat is skipping all the esm, esp under that directory.
(In reply to TOM from comment #19)
... and I was wondering, %m did not need anything pass to it ?
No, %m returns the human-readable error string for the current value of "errno".
OK, learn a lesson.