package tecnoballz
tags 409718 + patch
thanks
Package: tecnoballz
Version: 0.91cvs20060616-2
Severity: normal
Highscrores are not saving, i'm getting following error:
ressources::saveScores(): file:/var/games/tecnoballz/tecnoballz.hi /
error:Permission denied
highscore file permissions seem to be incorrect:
-rw-r--r-- 1 root games 804 2007-02-02 00:04
/var/games/tecnoballz/tecnoballz.hi
The file debian/tecnoballz.postinst just needs the right permissions
(664) in order for this to be fixed. Patch attached. Patch also
makes the /var/games/tecnoballz directory mode 2755 (from 0755) and
also make the directory permissions root.games (from root.root).
diff -ur tecnoballz-0.91cvs20060616/debian/tecnoballz.postinst tecnoballz-FIX/debian/tecnoballz.postinst
--- tecnoballz-0.91cvs20060616/debian/tecnoballz.postinst 2007-05-19 14:20:36.000000000 -0700
+++ tecnoballz-FIX/debian/tecnoballz.postinst 2007-05-21 14:21:24.000000000 -0700
@@ -36,10 +36,10 @@
fi
# The scorefile is writable by the group "games".
- chown root:root $SCOREDIR
- chmod 0755 $SCOREDIR
+ chown root:games $SCOREDIR
+ chmod 2755 $SCOREDIR
chown root:games $SCOREDIR/tecnoballz.hi
- chmod 0644 $SCOREDIR/tecnoballz.hi
+ chmod 0664 $SCOREDIR/tecnoballz.hi
# Help dpkg with the directory -> symlink transition
if [ -d "$DOCDIR" -a ! -L "$DOCDIR" ]; then