Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23237 - Cannot write XBoing scores file
Summary: Cannot write XBoing scores file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-21 10:22 UTC by Daniel Westermann-Clark
Modified: 2003-06-21 11:11 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 Daniel Westermann-Clark 2003-06-21 10:22:40 UTC
The default installation of XBoing, from xboing-2.4-r1, cannot write its high
scores file. At the end of a game, the following error is printed to the console:

XBoing - Warning: Cannot open high score file for writing.

As a result of this error, XBoing does not store high scores in
/var/games/xboing.score.

There are two possible workarounds:
1. Install /usr/games/bin/xboing suid games, so the default permissions of
/var/games/xboing.score allow writing.
2. Install /var/games/xboing.score with group write permissions, so all users in
group games can save their scores.

I applied the second workaround to my system, and have had no problems saving
high scores.

Reproducible: Always
Steps to Reproduce:
1. Load XBoing.
2. Play a game.
3. XBoing will ask you for "words of wisdom" if your score is high enough to get
on the list. Enter some.
4. The error will appear on the console from which you started XBoing.

Actual Results:  
XBoing did not save the high score for the next time you open it.

Expected Results:  
XBoing should have saved the high score to /var/games/xboing.score.

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.21 i686 AMD Athlon(tm) XP 2000+
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo rsync://gentoo.seren.com/gentoo
http://gentoo.oregonstate.edu"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="oss apm crypt kde libg++ libwww mikmod nls quicktime spell xmms zlib gdbm
berkdb slang svga java guile sdl gpm tcpd pam esd qt motif mozilla x86 3dnow mmx
aalib cdr cups fbcon maildir ncurses pda readline ssl perl python postgresql xml
xml2 X xv gtk gtkhtml gnome -arts truetype gif imlib jpeg pdflib png tiff avi
dvd encode mpeg opengl oggvorbis"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j1"
AUTOCLEAN="yes"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"