View Issue Details

IDProjectCategoryView StatusLast Update
0011801Dwarf FortressTechnical -- Generalpublic2021-08-27 05:00
Reporterkritzefitz Assigned To 
PrioritylowSeverityfeatureReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSDebianOS VersionBookworm
Product Version0.47.05 
Summary0011801: Some data files are unnecessarily(?) opened in read/write mode
DescriptionThere 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.
Steps To Reproduce

      
  1. chmod 444 data/index

  2.   
  3. ./df

  4.   
  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.”
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Add Note

Note

Issue History

Date Modified Username Field Change
2021-08-27 05:00 kritzefitz New Issue