Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#12258 - dopewars: wrong permission on /var/games
Attached to Project:
Arch Linux
Opened by Eric Belanger (Snowman) - Thursday, 27 November 2008, 20:11 GMT
Last edited by Thayer Williams (thayer) - Friday, 28 November 2008, 15:30 GMT
Opened by Eric Belanger (Snowman) - Thursday, 27 November 2008, 20:11 GMT
Last edited by Thayer Williams (thayer) - Friday, 28 November 2008, 15:30 GMT
|
Details/var/games permissions should be 775 as set by filesystem package, not 755:
pacman output: warning: directory permissions differ on var/games/ filesystem: 775 package: 755 |
This task depends upon
Closed by Thayer Williams (thayer)
Friday, 28 November 2008, 15:30 GMT
Reason for closing: Implemented
Friday, 28 November 2008, 15:30 GMT
Reason for closing: Implemented
root:games, 2755 permissions. The score files in /var/games should be owned by root:games also and should be mode 664. This makes sure games can write their hiscores while gamers can't cheat using a texteditor if they don't have root.
The score file's default location is hard-coded so I'm going to have to take a closer look at this when I have some more time this afternoon.
Fortunately, mandir does work as expected..err nevermind, man doesn't work either.
$ diff -Naur ../repos/extra-i686/PKGBUILD PKGBUILD
--- ../repos/extra-i686/PKGBUILD 2008-11-27 20:14:58.750555937 -0500
+++ PKGBUILD 2008-11-27 21:00:31.186950908 -0500
@@ -18,10 +18,7 @@
build() {
cd $srcdir/$pkgname-$pkgver
- # score path is hardwired so we must set to /var/games
- sed -i 's|${prefix}/var|/var/games|' configure || return 1
-
- ./configure --prefix=/usr || return 1
+ ./configure --prefix=/usr --localstatedir=/var/games --mandir=/usr/share/man || return 1
make || return 1
make DESTDIR=$pkgdir install || return 1
@@ -32,9 +29,9 @@
rm -r $pkgdir/usr/share/gnome
# set appropriate permissions and destinations
- mv $pkgdir/usr/man $pkgdir/usr/share
chown root:games $pkgdir/usr/bin/dopewars
chmod 2755 $pkgdir/usr/bin/dopewars
+ chown root:games $pkgdir/var/games
chmod 775 $pkgdir/var/games
# Handle the scores file creation in the install script
I just committed it in truck and pushed the changes to the 686 repo. Want me to do the same for x86_64?