summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-05-07 14:23:33 +0000
committerMike Frysinger <vapier@gentoo.org>2013-05-07 14:23:33 +0000
commitf881007b45e0e0684d3683bcd31a06524bc097c8 (patch)
treec15da142dfcfedf6553ad10c942eb6bafa54103d /eclass
parentAdd patch to deal with CVE-2013-3266. #468422 (diff)
downloadgentoo-2-f881007b45e0e0684d3683bcd31a06524bc097c8.tar.gz
gentoo-2-f881007b45e0e0684d3683bcd31a06524bc097c8.tar.bz2
gentoo-2-f881007b45e0e0684d3683bcd31a06524bc097c8.zip
do not try to cp/patch/chmod the file if it does not exist #468852 by Samuli Suominen
Diffstat (limited to 'eclass')
-rw-r--r--eclass/libtool.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass
index afd767ddf80a..2a413f3acfd4 100644
--- a/eclass/libtool.eclass
+++ b/eclass/libtool.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.104 2013/05/04 05:24:05 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.105 2013/05/07 14:23:33 vapier Exp $
# @ECLASS: libtool.eclass
# @MAINTAINER:
@@ -49,6 +49,11 @@ ELT_try_and_apply_patch() {
fi
printf '\nTrying %s\n' "${disp}" >> "${log}"
+ if [[ ! -e ${file} ]] ; then
+ echo "File not found: ${file}" >> "${log}"
+ return 1
+ fi
+
# Save file for permission restoration. `patch` sometimes resets things.
cp -p "${file}" "${file}.gentoo.elt"
# We only support patchlevel of 0 - why worry if its static patches?