Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0011801Dwarf FortressTechnical -- Generalpublic2021-08-27 05:002021-08-27 05:00
0011801: Some data files are unnecessarily(?) opened in read/write mode
There are some files in the data/ directory structure that Dwarf Fortress opens in read-write mode, but to my knowledge, it only reads from them and never writes to them.

This causes some unnecessary failures when the user doesn't have write permissions on those files. Usually this isn't a problem, because the user owns all the files of Dwarf Fortress. But for my Debian packages of Dwarf Fortress, this creates some additional complexity, because the files in question aren't writable by the user when installed and I have to work around this in my wrapper script (see 11800).

I think the directories affected by this are as follows:

  • data/dipscript/

  • data/announcement/

  • data/help/

  • data/index

However, since I don't know the internals of Dwarf Fortress, I don't know if Dwarf Fortress may sometimes write to these files. But at least I have never seen any modifications to them in the wild.

  1. chmod 444 data/index

  3. ./df

  5. Dwarf Fortress doesn't start and gives the following message: “Main index file missing/corrupted. The file "index" must be in the "data" folder. Make sure DF decompressed into its folders properly.”
No tags attached.
Issue History
2021-08-27 05:00kritzefitzNew Issue

There are no notes attached to this issue.