diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-10-03 00:22:55 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-10-03 00:23:10 +0200 |
commit | 3ee9d48fff5698bc024a307f01383546025d8f6b (patch) | |
tree | db118bd6eb7a08cbcaf8b23ff19df0416642a099 /sys-devel/gcc | |
parent | app-emulation/virtualbox: Replaced epatch with eapply. (diff) | |
download | gentoo-3ee9d48fff5698bc024a307f01383546025d8f6b.tar.gz gentoo-3ee9d48fff5698bc024a307f01383546025d8f6b.tar.bz2 gentoo-3ee9d48fff5698bc024a307f01383546025d8f6b.zip |
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
Diffstat (limited to 'sys-devel/gcc')
-rw-r--r-- | sys-devel/gcc/files/fix_libtool_files.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-devel/gcc/files/fix_libtool_files.sh b/sys-devel/gcc/files/fix_libtool_files.sh index 2b818ce66d08..ad137a9866fb 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 |