Bug#859318: pyracerz: Games crashes with Permission denied when writing highscores

Andrej Mernik andrejm at ubuntu.si
Sun Apr 2 07:33:47 UTC 2017


Package: pyracerz
Version: 0.2-8
Severity: normal

Dear Maintainer,

the game crashes when it tries to write the highscore file:

Traceback (most recent call last):
  File "/usr/games/pyracerz", line 280, in <module>
    if __name__ == '__main__': main()
  File "/usr/games/pyracerz", line 251, in main
    challenge.Challenge(thePlayer)
  File "/usr/share/games/pyracerz/modules/challenge.py", line 65, in __init__
    chrono = chalRace.play()
  File "/usr/share/games/pyracerz/modules/game.py", line 550, in play
    self.computeScores(currentTrack)
  File "/usr/share/games/pyracerz/modules/game.py", line 613, in computeScores
    if misc.addHiScore(track, play) == 1:
  File "/usr/share/games/pyracerz/modules/misc.py", line 185, in addHiScore
    fwrite = file("/var/games/pyracerz/pyracerz.conf", "w+")
IOError: [Errno 13] Permission denied: '/var/games/pyracerz/pyracerz.conf'


$ ls -al /var/games/pyracerz/pyracerz.conf
-rw-rw-r-- 1 root games 1208 apr  2 08:48 /var/games/pyracerz/pyracerz.conf

Best Regards,
Andrej Mernik



-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=sl_SI.UTF-8, LC_CTYPE=sl_SI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pyracerz depends on:
ii  libsdl-ttf2.0-0  2.0.11-3+b1
ii  python-pygame    1.9.1release+dfsg-10+b2
pn  python:any       <none>

pyracerz recommends no packages.

pyracerz suggests no packages.

-- no debconf information



More information about the Pkg-games-devel mailing list