Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28010 - OpenRPG attempts to save a file to a directory without permissions
Summary: OpenRPG attempts to save a file to a directory without permissions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-05 11:23 UTC by prower
Modified: 2003-09-18 23:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description prower 2003-09-05 11:23:34 UTC
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 Brian Jackson (RETIRED) gentoo-dev 2003-09-06 12:10:52 UTC
adding a fperms 770 for the dodir ${GAMES_DATADIR}/${PN} should do 
the trick 
Comment 2 SpanKY gentoo-dev 2003-09-18 23:00:42 UTC
fixed in cvs