high score tables are always empty

Bug #1330956 reported by ais523
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
five-or-more (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Trusty by Alkis Georgopoulos

Bug Description

When freshly installing glines/five-or-more, the high score tables stay empty even when games are completed. Expected behaviour is for newly completed games to appear in the high score table if they have a higher score than the currently lowest-scoring game on the table. The direct cause of this is incorrect permissions on the high score tables; the current five-or-more package installs /var/games/glines.*.scores as 644 root/root, and the correct permissions are 664 root/games (as seen in many other game-related packages). (The 2755 root/games permissions on the executable itself are correct.)

The indirect cause is that there's an attempt made to install the high score tables in fresh installs via two different mechanisms; the postinst configure script tries to install them with the correct permissions, but it leaves the files as they currently are if they already exist; the binary package also tries to install them directly during unpack, but with the incorrect permissions. Unpack happens before configure, so first the unpack creates the files with the wrong permissions, and then the unpack leaves them alone.

The provided patch fixes this issue via removing the high score files from the binary package, leaving the postinst script in charge of creating them.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: five-or-more 1:3.8.2-1 [modified: var/games/glines.Small.scores]
ProcVersionSignature: Ubuntu 3.13.0-29.53-generic 3.13.11.2
Uname: Linux 3.13.0-29-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Jun 17 12:23:45 2014
InstallationDate: Installed on 2014-06-03 (13 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
SourcePackage: five-or-more
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
ais523 (ais523) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch that fixes this bug" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Jackson Doak (noskcaj)
Changed in five-or-more (Ubuntu):
status: New → Incomplete
status: Incomplete → Fix Released
Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

This is fixed in five-or-more 1:3.12.1-1, but it still affects the current LTS release, 14.04, which has version 1:3.8.2-1.

Revision history for this message
Maik Wagner (mtwagner) wrote :

Lubuntu 15.04 here, everything works well.

Versionnumber: 3.14.1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.