vfs_Lookup tries to create bogus directories
When I run the game on Linux (with no non-standard directories, and with a read-only root), g_VFS->Mount(L"screenshots/", paths.Data()/L"screenshots/")
ends up calling vfs_Lookup
which calls wmkdir("screenshots")
which fails because that's relative to the cwd (the system
directory) and read-only.
The ~/.local/share/0ad/screenshots/
directory is created before this happens, and it tries creating the bogus screenshots
directory even if that proper one exists.
Change History
(4)
Milestone: |
Unclassified → OS Pre-Alpha 1
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Milestone: |
OS Pre-Alpha 1
|
(In [7378]) fix: mustn't create directories during mount's vfs path traversal (because they may not be associated with a directory, especially in the common case of mounting into the root directory) fixes #459