From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Kh7bq-0003hu-Ud for garchives@archives.gentoo.org; Sat, 20 Sep 2008 18:55:11 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C209FE050D; Sat, 20 Sep 2008 18:55:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9504AE050D for ; Sat, 20 Sep 2008 18:55:10 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 91E2AB4A84 for ; Sat, 20 Sep 2008 18:55:09 +0000 (UTC) Received: from vapier by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1Kh7bo-0000uG-C4 for gentoo-commits@lists.gentoo.org; Sat, 20 Sep 2008 18:55:08 +0000 From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: eutils.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: eutils.eclass X-VCS-Directories: eclass X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Message-Id: Sender: Mike Frysinger Date: Sat, 20 Sep 2008 18:55:08 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 2f474e1f-ebc8-48d2-b96d-b477796af539 X-Archives-Hash: 84f235f3e400c501e7e4ac0ced45f4d8 vapier 08/09/20 18:55:08 Modified: eutils.eclass Log: start whining about absolute paths in patch files Revision Changes Path 1.305 eclass/eutils.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/eutils.ecla= ss?rev=3D1.305&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/eutils.ecla= ss?rev=3D1.305&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/eutils.ecla= ss?r1=3D1.304&r2=3D1.305 Index: eutils.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v retrieving revision 1.304 retrieving revision 1.305 diff -u -r1.304 -r1.305 --- eutils.eclass 20 Sep 2008 18:45:26 -0000 1.304 +++ eutils.eclass 20 Sep 2008 18:55:07 -0000 1.305 @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.304 2008/09/= 20 18:45:26 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.305 2008/09/= 20 18:55:07 vapier Exp $ =20 # @ECLASS: eutils.eclass # @MAINTAINER: @@ -264,6 +264,13 @@ PATCH_TARGET=3D"${x}" fi =20 + # Check for absolute paths in patches. If sandbox is disabled, + # people could (accidently) patch files in the root filesystem. + # Or trigger other unpleasantries #237667. + if egrep -q '^[-+]{3} /' "${PATCH_TARGET}" ; then + ewarn "Absolute paths found in ${patchname}! Please remove them!" + fi + # Allow for prefix to differ ... im lazy, so shoot me :/ while [ "${count}" -lt 5 ] do