Bug#476635: alienblaster: Permissions problem

Moritz Muehlenhoff jmm at inutil.org
Thu May 1 22:02:29 UTC 2008


severity 476635 minor
thanks

Hi Johan,

> strace alienblaster
> quit the program
> 
> In the strace output I get:
> 
> ...
> unlink("/usr/share/games/alienblaster/cfg/alienBlaster.cfg") = -1 EACCES (Permission denied)
> open("/usr/share/games/alienblaster/cfg/alienBlaster.cfg", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 EACCES (Permission denied)
> write(1, "Options::saveFile(): error while"..., 97Options::saveFile(): error while opening file /usr/share/games/alienblaster/cfg/alienBlaster.cfg
> ) = 97

This seems to be caused by Settings::saveSettings(), which shouldn't be
trying to rewrite the settings file. I'll let upstream (who's following
the Debian BTS) fix this up in a future release.

>  The settings file is in /usr/share/..., shouldn't it be in /etc?

It's not a typical configuration meant for editing by users, but
rather internal game data describing game mechanics, so I rather
placed it under /usr/share with the other data.

>  Even though opening the file fails, alienblaster still tries to write to it.
> 
> After this the program doesn't properly terminate either, it just sits there eating CPU...

But only when running under strace, or does it hang for you as well 
when running it normally?

Cheers,
        Moritz





More information about the Pkg-games-devel mailing list