commit:     3ee9d48fff5698bc024a307f01383546025d8f6b
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Mon Oct  2 22:22:55 2017 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Mon Oct  2 22:23:10 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ee9d48f

sys-devel/gcc: fix_libtool_files.sh: do not require to be root on prefix, bug 
607900

Closes: https://bugs.gentoo.org/607900
Package-Manager: Portage-2.3.10, Repoman-2.3.3

 sys-devel/gcc/files/fix_libtool_files.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys-devel/gcc/files/fix_libtool_files.sh 
b/sys-devel/gcc/files/fix_libtool_files.sh
index 2b818ce66d0..ad137a9866f 100644
--- a/sys-devel/gcc/files/fix_libtool_files.sh
+++ b/sys-devel/gcc/files/fix_libtool_files.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 usage() {
@@ -39,6 +39,7 @@ ARGV3=$3
 . /etc/profile || exit 1
 
 if [ ${EUID:-0} -ne 0 ] ; then
+if [ ${EUID:-0} -ne 0   -a   "${EPREFIX}" == '' ] ; then
        echo "${0##*/}: Must be root."
        exit 1
 fi

Reply via email to