From 85e3299b684ca9e25c7e0e7c25981a7e255c42f0 Mon Sep 17 00:00:00 2001 From: Brian Harring Date: Mon, 26 Dec 2005 06:29:50 +0000 Subject: 'DISTFILES indirection; access $BUILDDIR/distdir instead of $DISTFILES , thus blocking unstated access. svn path=/main/trunk/; revision=2474 --- bin/ebuild.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index bf785ae7a..5ea8f92a6 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -702,6 +702,9 @@ dyn_clean() { if [ -z "$(find "${BUILDDIR}" -mindepth 1 -maxdepth 1)" ]; then rmdir "${BUILDDIR}" fi + # do not bind this to doebuild defined DISTDIR; don't trust doebuild, and if mistakes are made it'll + # result in it wiping the users distfiles directory (bad). + rm -rf "${BUILDDIR}/distdir" true } -- cgit v1.2.3-1-g7c22