summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2010-09-02 18:08:28 +0000
committerFabian Groffen <grobian@gentoo.org>2010-09-02 18:08:28 +0000
commit0401fb08d7829f1d78f149a2b19e7606892a6a17 (patch)
treed0b2ffab8bbdfee5a8e1625d73e91ac59e248e5d /app-misc
parentDo not install COPYING. Set RDEPEND explicitly. (diff)
downloadgentoo-2-0401fb08d7829f1d78f149a2b19e7606892a6a17.tar.gz
gentoo-2-0401fb08d7829f1d78f149a2b19e7606892a6a17.tar.bz2
gentoo-2-0401fb08d7829f1d78f149a2b19e7606892a6a17.zip
Only try changing permissions when using a privileged user, bug #335250
(Portage version: 2.2.01.15553-prefix/cvs/Darwin powerpc)
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/mc/ChangeLog5
-rw-r--r--app-misc/mc/mc-4.7.3-r3.ebuild12
2 files changed, 11 insertions, 6 deletions
diff --git a/app-misc/mc/ChangeLog b/app-misc/mc/ChangeLog
index 9cfee8b4643b..6d6eef09ff0b 100644
--- a/app-misc/mc/ChangeLog
+++ b/app-misc/mc/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-misc/mc
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/ChangeLog,v 1.206 2010/08/25 22:04:16 wired Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/ChangeLog,v 1.207 2010/09/02 18:08:28 grobian Exp $
+
+ 02 Sep 2010; Fabian Groffen <grobian@gentoo.org> mc-4.7.3-r3.ebuild:
+ Only try changing permissions when using a privileged user, bug #335250
*mc-4.7.3-r3 (25 Aug 2010)
*mc-4.7.0.8-r1 (25 Aug 2010)
diff --git a/app-misc/mc/mc-4.7.3-r3.ebuild b/app-misc/mc/mc-4.7.3-r3.ebuild
index ab6b66af394f..c70890221bd0 100644
--- a/app-misc/mc/mc-4.7.3-r3.ebuild
+++ b/app-misc/mc/mc-4.7.3-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/mc-4.7.3-r3.ebuild,v 1.1 2010/08/25 22:04:16 wired Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/mc-4.7.3-r3.ebuild,v 1.2 2010/09/02 18:08:28 grobian Exp $
EAPI=3
@@ -65,10 +65,12 @@ src_install() {
dodoc AUTHORS README
# fix bug #334383
- fowners root:tty /usr/libexec/mc/cons.saver ||
- die "setting cons.saver's owner failed"
- fperms g+s /usr/libexec/mc/cons.saver ||
- die "setting cons.saver's permissions failed"
+ if [[ ${EUID} == 0 ]] ; then
+ fowners root:tty /usr/libexec/mc/cons.saver ||
+ die "setting cons.saver's owner failed"
+ fperms g+s /usr/libexec/mc/cons.saver ||
+ die "setting cons.saver's permissions failed"
+ fi
}
pkg_postinst() {