Bug 28010 - OpenRPG attempts to save a file to a directory without permissions
Bug#: 28010 Product:  Gentoo Linux Version: 1.4 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: prower2000@hotmail.com
Component: Games
URL: 
Summary: OpenRPG attempts to save a file to a directory without permissions
Keywords:  
Status Whiteboard: 
Opened: 2003-09-05 11:23 0000
Description:   Opened: 2003-09-05 11:23 0000
The most recent version of OpenRPG in Portage attempts to create a settings XML
file in /usr/share/games/openrpg/myfiles/ini.xml, which normal users do not have
permission to write to. The following will appear in the console when run:

Traceback (most recent call last):
  File "orpg/main.py", line 949, in AfterSplash
    self.frame = orpgFrame(NULL, -1, "OpenRPG v"+VERSION)
  File "orpg/main.py", line 248, in __init__
    s = orpg.tools.orpg_settings.settings()
  File "orpg/tools/orpg_settings.py", line 214, in __init__
    self.setup_ini(ini_xml)
  File "orpg/tools/orpg_settings.py", line 219, in setup_ini
    config_files.validate_config_file(ini_xml,"default_ini.xml")
  File "orpg/tools/config_files.py", line 10, in validate_config_file
    newfile = open(orpg.dirpath.dir_struct["user"] + user_file,"w")
IOError: [Errno 13] Permission denied: '/usr/share/games/openrpg/myfiles/ini.xml'

------- Comment #1 From Brian Jackson (RETIRED) 2003-09-06 12:10:52 0000 -------
adding a fperms 770 for the dodir ${GAMES_DATADIR}/${PN} should do 
the trick 

------- Comment #2 From SpanKY 2003-09-18 23:00:42 0000 -------
fixed in cvs