[Bug 47169] Skyrim failed to load Data if Data directory is soft linked.

wine-bugs at winehq.org wine-bugs at winehq.org
Tue May 21 23:31:02 CDT 2019


https://bugs.winehq.org/show_bug.cgi?id=47169

--- Comment #22 from Erich E. Hoover <erich.e.hoover at gmail.com> ---
(In reply to TOM from comment #21)
> ...
> 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.
> ...

I have a thought.  Try changing this (down from the lstat a little):
        unsigned int err;
        struct inode *inode = get_inode( st.st_dev, st.st_ino, fd->unix_fd );
        int is_link = S_ISLNK(st.st_mode), is_dir;
to this:
        int is_link = S_ISLNK(st.st_mode), is_dir;
        struct inode *inode;
        unsigned int err;
        fstat( fd->unix_fd, &st );
        inode = get_inode( st.st_dev, st.st_ino, fd->unix_fd );

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list