Public bug reported:
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)
** Affects: five-or-more (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug trusty
** Patch added: "patch that fixes this bug"
https://bugs.launchpad.net/bugs/1330956/+attachment/4133225/+files/fix-high-score-permissions.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1330956
Title:
high score tables are always empty
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/five-or-more/+bug/1330956/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs