Unclear It is not clear when these protections apply, since the helper only uses them when it is given a held file.
What
The file helper that mods use to read, write and list files can now hold on to the file it opened instead of looking it up by name each time. With that, it:
- checks again just before writing
- refuses to write a file that has another name, meaning a hard link, a second name pointing at the same file
- confirms that what it opened is what it expected
- lists folders through the file it holds
When a file is not held, the operation can now fail with an error saying so.
Why
This makes it harder to trick a mod into writing somewhere else by swapping a file for a link between the moment it is checked and the moment it is used.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not clear when these protections apply, since the helper only uses them when it is given a held file.