summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2015-02-20 10:22:42 +0000
committerUlrich Müller <ulm@gentoo.org>2015-02-20 10:22:42 +0000
commit0205e0117fae8e337b1622cce1022d58adedec02 (patch)
treeb3070c79028d4f5467b7a389c480dbde7ffc3ead /eclass/games.eclass
parentx86 stable, bug #540532 (diff)
downloadgentoo-2-0205e0117fae8e337b1622cce1022d58adedec02.tar.gz
gentoo-2-0205e0117fae8e337b1622cce1022d58adedec02.tar.bz2
gentoo-2-0205e0117fae8e337b1622cce1022d58adedec02.zip
[QA] games.eclass: Leave permissions of top-level directories alone, bug 537580.
Diffstat (limited to 'eclass/games.eclass')
-rw-r--r--eclass/games.eclass13
1 files changed, 7 insertions, 6 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass
index 0b4ded7d8295..336698e805cf 100644
--- a/eclass/games.eclass
+++ b/eclass/games.eclass
@@ -1,6 +1,6 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.159 2014/11/21 21:47:16 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.160 2015/02/20 10:22:42 ulm Exp $
# @ECLASS: games
# @MAINTAINER:
@@ -246,10 +246,11 @@ prepgamesdirs() {
[[ ${dir} = ${GAMES_STATEDIR} ]] && mode=o-rwx,g+r
find "${D}/${dir}" -type f -print0 | xargs -0 chmod $mode
- # common trees should not be games owned #264872
- if [[ ${dir} == "${GAMES_PREFIX_OPT}" ]] ; then
- fowners root:root "${dir}"
- fperms 755 "${dir}"
+ # common trees should not be games owned #264872 #537580
+ fowners root:root "${dir}"
+ fperms 755 "${dir}"
+ if [[ ${dir} == "${GAMES_PREFIX}" \
+ || ${dir} == "${GAMES_PREFIX_OPT}" ]] ; then
for d in $(get_libdir) bin ; do
# check if dirs exist to avoid "nonfatal" option
if [[ -e ${D}/${dir}/${d} ]] ; then